Serialization/Deserialization for dataclasses
Project description
Clamfig
Features:
- Serialization and deserialization of dataclass objects
- Compatible with JSON/YAML formats
- Supports nested dataclasses
- Serializes the following additional types:
- bytes
- Decimal
- datetime
- Configuration file management using JSON or YAML format
Future Work
- Add validation for deserialization from unreliable sources
- Expand beyond dataclasses to handle other frameworks that include runtime validation.
- Atom (https://github.com/nucleic/atom)
- Pydantic (https://github.com/samuelcolvin/pydantic)
Acknowledgements
- Some code inspired by https://github.com/codelv/atom-db
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
clamfig-0.1.3.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file clamfig-0.1.3.tar.gz
.
File metadata
- Download URL: clamfig-0.1.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c94da909a1d11f0880e10e3fca3142c322bfda6ab02ec5610523f151326275a |
|
MD5 | 092955237e3e77bdc8fcf7a9d4f59475 |
|
BLAKE2b-256 | 4f5d09ec731d0522a7a9b6fc7c137477d093ed28cc5e76e9d4a39ec2b2096e17 |
File details
Details for the file clamfig-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: clamfig-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75b799c7e8704c3348809584430924143b4ae5217d7b6fefcce2260654d40e69 |
|
MD5 | 48cf360fb244149dab825782dacefba2 |
|
BLAKE2b-256 | 8f15eab451fdac7d9537cc8f2fb966a1454e0be07afad02eb1e868d40a95c928 |