simple way to handle json format data
Project description
# flexible_dict: simple way to handle json format data in python
## example
```python
from flexible_dict import json_object, MISSING
@json_object
class A:
i: int = 3
j: str = "init value"
s: float
g: int = MISSING
a = A()
print(a) # actual is a dict
print(a.i) # access value via x.y
print(a.j)
a.j = "update value" # set value
print(a['j']) # access value via native dict way
```
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
flexible_dict-1.0.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for flexible_dict-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87b2ebc23fd0948c0dcb16a3f9e5e042edf1d8692144222247ceb067500f0475 |
|
MD5 | 75799b25d91c285d9b7b15e65250b7b5 |
|
BLAKE2b-256 | 43aa5ce25fe658ca7ea524e4367d8684f984b92f129006ee89c0f99cc1068e25 |