Crates.io | serde_python |
lib.rs | serde_python |
version | 0.1.1 |
source | src |
created_at | 2018-04-01 17:52:49.316884 |
updated_at | 2018-04-29 07:52:21.103161 |
description | Uses serde to convert structs to Python |
homepage | |
repository | https://github.com/spease/serde_python.git |
max_upload_size | |
id | 58524 |
size | 13,923 |
A helper library that allows you to use serde-enabled structures seamlessly with cpython
#[macro_use]
extern crate serde_python;
#[derive(Python, Serialize)]
struct MyStruct {
// ...
}
Right now, simple enums serialize to strings, more complex enums aren't supported.
Advice on how to correctly handle this is welcome.
Support for FromPyObject (deserialize direction)
cargo test -- --nocapture`
The output must currently be manually audited by a human.
This project is licensed under the MIT License - see the LICENSE.md file for details