Skip to main content

Json Modeling Library

Provides easy way to map dict to/from Full-Fledged 'JsonModel' object.

PythonSupport PyPI version

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)

Source distribution for xmodel 1.0.0
File Size Uploaded
xmodel-1.0.0.tar.gz 82.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xmodel 1.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

1.0.1

2 release files

This release

1.0.0 This release

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page