implicitdict
This library primarily provides the ImplicitDict base class which enables the inheriting class to implicitly be treated like a dict with entries corresponding to the fields of the inheriting class. Simple example:
class MyData(ImplicitDict):
foo: str
bar: int = 0
baz: Optional[float]
data: MyData = ImplicitDict.parse({'foo': 'asdf', 'bar': 1}, MyData)
assert json.dumps(data) == '{"foo": "asdf", "bar": 1}'
See class documentation for ImplicitDict and test_normal_usage.py for more information.
Release files for implicitdict 5.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| implicitdict-5.0.0.tar.gz | 54.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| implicitdict-5.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.6 kB
Release files / implicitdict-5.0.0.tar.gz
| Download URL | implicitdict-5.0.0.tar.gz |
|---|---|
| Size | 54.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d6cd0dcad8742df15d8f29b355bd2f854ccf6a6276cf68bc70a8d5139885a05
|
|
BLAKE2b-256 checksum How to use checksums |
7cca07ec9f8d136d202b047d481b95319c5697f097c9fed37807d6e2b99011ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / implicitdict-5.0.0-py3-none-any.whl
| Download URL | implicitdict-5.0.0-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8371d3896b3a52b6de793efa99e5f8c97505076627692d325e2b6e701dbaa65a
|
|
BLAKE2b-256 checksum How to use checksums |
927dcd6169a6f2e16634df8a9d05d00685d5e426c9b27a52d076ea3bafa14e3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|