Skip to content

spease/serde_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serde_python

A helper library that allows you to use serde-enabled structures seamlessly with cpython

Getting Started

#[macro_use]
extern crate serde_python;

#[derive(Python, Serialize)]
struct MyStruct {
  // ...
}

Limitations / buyer-beware

Right now, simple enums serialize to strings, more complex enums aren't supported.

Advice on how to correctly handle this is welcome.

Coming Soon

Support for FromPyObject (deserialize direction)

Running the tests

cargo test -- --nocapture`

The output must currently be manually audited by a human.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages