Registry / serialization / py-literal

py-literal

JSON →
library0.4.0rscratesunverified

Read and write Python literals in Rust.

# Cargo.toml [dependencies] py_literal = "0.4.0"
INSTALL
IMPORT
SIG · PY-LITERAL
P
py-literal
serializationrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Value
use py_literal::Value;

Parses a Python list literal string into a Value.

use py_literal::Value; fn main() { let val: Value = "[1, 2, 3]".parse().unwrap(); println!("Parsed Python list: {:?}", val); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
py-literal — cargo add py-literal · libregistry