Registry / serialization / pythonize

pythonize

JSON →
library0.28.0rscratesunverified

Serde Serializer & Deserializer from Rust <--> Python, backed by PyO3.

# Cargo.toml [dependencies] pythonize = "0.28.0"
INSTALL
IMPORT
SIG · PYTHONIZE
P
pythonize
serializationrustv0.28.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.

pythonize
use pythonize::pythonize;

Serializes a Rust struct into a Python object using PyO3.

use pythonize::pythonize; use serde::Serialize; #[derive(Serialize)] struct Data { x: i32, y: String, } fn main() { let data = Data { x: 42, y: "hello".into() }; let py_obj = pythonize(&data).unwrap(); println!("Python object: {:?}", py_obj); }
Debug
Known issues
gotchaRequires Python runtime and PyO3 setup.
fix
Ensure Python is installed and PyO3 is configured correctly.
affects: *
Upgrade
Version history
0.28.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
pythonize — cargo add pythonize · libregistry