use-python-value 0.0.1

Python-like primitive value metadata for RustUse
Documentation
  • Coverage
  • 41.03%
    16 out of 39 items documented1 out of 16 items with examples
  • Size
  • Source code size: 10.37 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 800.15 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-python
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-python-value

Python-like primitive value metadata for RustUse.

Experimental

use-python-value is experimental while use-python remains below 0.3.0.

Example

use use_python_value::PythonPrimitiveValue;

let value = PythonPrimitiveValue::Int(String::from("12345678901234567890"));

assert_eq!(value.type_name(), "int");
assert!(value.is_numeric());
assert!(value.is_truthy_like());

Scope

  • Primitive Python-like value metadata.
  • Truthy-like and numeric classification helpers.
  • Text storage for large integer literals without arbitrary-precision dependencies.

Non-goals

  • Full Python object semantics.
  • Arbitrary-precision math.
  • Evaluating Python literals or source code.

License

Licensed under either Apache-2.0 or MIT.