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
Metadata
Release files for xmodel 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| xmodel-1.0.1.tar.gz | 82.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xmodel-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 176.5 kB
Release files / xmodel-1.0.1.tar.gz
| Download URL | xmodel-1.0.1.tar.gz |
|---|---|
| Size | 82.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b31d0a0c20f5887a786565b9748019b8024133b4ffd0cd4fd4cd5e9df5d3976
|
|
BLAKE2b-256 checksum How to use checksums |
629ad1d7cb2f663b117afa8f47d6804fc25d339b17856f489d1d0aa4d118df63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Release files / xmodel-1.0.1-py3-none-any.whl
| Download URL | xmodel-1.0.1-py3-none-any.whl |
|---|---|
| Size | 93.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53605525daae730784a54db272be28ed3fd8f0a366dcb2ce0a2a6e98298240be
|
|
BLAKE2b-256 checksum How to use checksums |
7a5c1017e49a2b91eecbe2be19c4caa9f060e301425d7075f0496342c784c6a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Security for xmodel 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.