Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
Library for easy bi-direction converting between plain JSON-like data (numbers, strings, lists and dicts) and compound user-defined classes.
Trivial example:
>>> from steward import *
>>> class Comp(Component):
... a = Field()
... b = Field(default=1)
...
>>> v = Comp(a=0)
>>> dct = v.as_plain()
>>> dct
{'a': 0, 'b': 1}
>>> v2 = Comp.from_plain(dct)
>>> v2.a
0
>>> v2.b
1
>>> v2.a = 7
>>> v2.as_plain()
{'a': 7, 'b': 1}
Metadata
Release files for steward 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| steward-0.0.4.tar.gz | 3.9 kB | Details |
Release files / steward-0.0.4.tar.gz
| Download URL | steward-0.0.4.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e1e61cd297f68fec40104532e2b78b9a4d76a540dffe9938ae763b369da3429
|
|
BLAKE2b-256 checksum How to use checksums |
0471b2150f5a47efa7217bfb5e1804863ba39e3530befcc8dcd9203f43890805
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |