Metadata-Version: 2.1
Name: xmodel
Version: 0.1.1
Summary: Models for working with JSON, ie: JsonModel
Home-page: https://github.com/xyngular/py-xmodel
License: The Unlicense (Unlicense)
Author: Josh Orr
Author-email: josh@orr.blue
Requires-Python: >=3.8,<3.9
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: ciso8601 (>=2.3.0,<3.0.0)
Requires-Dist: setuptools (>=67.6.1,<68.0.0)
Requires-Dist: typing-inspect (>=0,<1)
Requires-Dist: xinject (>=1.4.0,<2.0.0)
Requires-Dist: xloop (>=1.0.1,<2.0.0)
Requires-Dist: xsentinels (>=1.2.1,<2.0.0)
Requires-Dist: xurls (>=0.2.0,<0.3.0)
Project-URL: Repository, https://github.com/xyngular/py-xmodel
Description-Content-Type: text/markdown

# Json Modeling Library

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

## 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!


```shell
poetry install xmodel
```

or

```shell
pip install xmodel
```

Very basic example:

```python
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
```

