Serialize/deserialize Python objects from/to dataclasses
Project description
serdataclasses
Warning: vaporware, subject to change at any time, for any reason, in any way.
This library has two goals:
- Deserialize JSON into python dataclasses
- Serialize Python data classes into JSON
It has no external dependencies. Python 3.8+.
Notes
- Recursive types aren't currently supported by mypy. I have them anyway because recursive types will allegedly be supported soon. That said, the type checker isn't super happy with me at the moment.
- Edge cases haven't been considered. This library is a learning project, for now.
- Inspired by undictify, but special-cased to dataclasses and more-focused on serde instead of general function signature overrides.
Written by
- Samuel Roeca
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
serdataclasses-0.1.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for serdataclasses-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ede0550ae47015771ea4fbc6ade34d3769e15d6b62a41da447d9fe67de34e3 |
|
MD5 | 1fd86cc38813cca2ff5fd3e7c994f9f3 |
|
BLAKE2b-256 | ed5249f926cc9bc5bd9f44f88870eb11d6f6940de776a5d4cdd684eee562dfe1 |