Json Modeling Library
Provides easy way to map dict to/from Full-Fledged 'JsonModel' object.
Documentation
📄 Detailed Documentation | 🐍 PyPi
Getting Started
???+ warning "Alpha Software!" This is pre-release Alpha software, based on another code base and the needed changes to make a final release version are not yet completed. Everything is subject to change!
poetry install xmodel
or
pip install xmodel
Very basic example:
from xmodel import JsonModel
class MyModel(JsonModel):
some_attr: str
json_dict_input = {'some_attr': 'a-value'}
obj = MyModel(json_dict_input)
assert obj.some_attr == 'a-value'
json_dict = obj.api.json()
assert json_dict == json_dict_input
Release files for xmodel 1.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 | |
|---|---|---|---|
| xmodel-1.0.0.tar.gz | 82.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xmodel-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 176.3 kB
Release files / xmodel-1.0.0.tar.gz
| Download URL | xmodel-1.0.0.tar.gz |
|---|---|
| Size | 82.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5838cffb73b5a09f1a9fa0611b73ebaddb2de27ed2cadbcf8c8e14c066cbffea
|
|
BLAKE2b-256 checksum How to use checksums |
9eccf644d299344bcc4168e957d97a510367d1eb01daee93a9887f8713ffdb26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure
|
Release files / xmodel-1.0.0-py3-none-any.whl
| Download URL | xmodel-1.0.0-py3-none-any.whl |
|---|---|
| Size | 93.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e03a7e73d3a85c3b3c1db1af7ad69966b06c5c25db47617d43f2d27fb1a7608
|
|
BLAKE2b-256 checksum How to use checksums |
2854ad3dd1164d553091130bdc64aa3c6eceffda8f1a83e9d2e86031c81ae46c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure
|