MCPcopy Index your code
hub / github.com/davidhewitt/pythonize / pythonize

Function pythonize

src/ser.rs:168–173  ·  view source on GitHub ↗

Attempt to convert the given data into a Python object

(py: Python<'py>, value: &T)

Source from the content-addressed store, hash-verified

166
167/// Attempt to convert the given data into a Python object
168pub fn pythonize<'py, T>(py: Python<'py>, value: &T) -> Result<Bound<'py, PyAny>>
169where
170 T: ?Sized + Serialize,
171{
172 value.serialize(Pythonizer::new(py))
173}
174
175/// Attempt to convert the given data into a Python object.
176/// Also uses custom mapping python class for serialization.

Callers 15

test_serFunction · 0.85
test_simple_round_tripFunction · 0.85
test_rename_key_presentFunction · 0.85
test_rename_round_tripFunction · 0.85
test_option_some_i64_maxFunction · 0.85

Calls 1

serializeMethod · 0.80

Tested by 15

test_serFunction · 0.68
test_simple_round_tripFunction · 0.68
test_rename_key_presentFunction · 0.68
test_rename_round_tripFunction · 0.68
test_option_some_i64_maxFunction · 0.68