Name | xmodel JSON |
Version |
0.8.0
JSON |
| download |
home_page | https://github.com/xyngular/py-xmodel |
Summary | Models for working with JSON, ie: JsonModel |
upload_time | 2023-09-27 14:57:28 |
maintainer | |
docs_url | None |
author | Josh Orr |
requires_python | >=3.8,<4.0 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Json Modeling Library
Provides easy way to map dict to/from Full-Fledged 'JsonModel' object.
![PythonSupport](https://img.shields.io/static/v1?label=python&message=%203.8|%203.9|%203.10|%203.11&color=blue?style=flat-square&logo=python)
![PyPI version](https://badge.fury.io/py/xmodel.svg?)
## Documentation
**[📄 Detailed Documentation](https://xyngular.github.io/py-xmodel/latest/)** | **[🐍 PyPi](https://pypi.org/project/xmodel/)**
## 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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/xyngular/py-xmodel",
"name": "xmodel",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Josh Orr",
"author_email": "josh@orr.blue",
"download_url": "https://files.pythonhosted.org/packages/f7/85/8e10333aa893c90286f7fe4d8a973b244a2d689e6c1b1b468506a215555a/xmodel-0.8.0.tar.gz",
"platform": null,
"description": "# Json Modeling Library\n\nProvides easy way to map dict to/from Full-Fledged 'JsonModel' object.\n\n![PythonSupport](https://img.shields.io/static/v1?label=python&message=%203.8|%203.9|%203.10|%203.11&color=blue?style=flat-square&logo=python)\n![PyPI version](https://badge.fury.io/py/xmodel.svg?)\n\n## Documentation\n\n**[\ud83d\udcc4 Detailed Documentation](https://xyngular.github.io/py-xmodel/latest/)** | **[\ud83d\udc0d PyPi](https://pypi.org/project/xmodel/)**\n\n## Getting Started\n\n???+ warning \"Alpha Software!\"\n This is pre-release Alpha software, based on another code base and\n the needed changes to make a final release version are not yet\n completed. Everything is subject to change!\n\n\n```shell\npoetry install xmodel\n```\n\nor\n\n```shell\npip install xmodel\n```\n\nVery basic example:\n\n```python\nfrom xmodel import JsonModel\n\nclass MyModel(JsonModel):\n some_attr: str\n\njson_dict_input = {'some_attr': 'a-value'} \n\nobj = MyModel(json_dict_input)\nassert obj.some_attr == 'a-value'\n\njson_dict = obj.api.json()\nassert json_dict == json_dict_input\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "Models for working with JSON, ie: JsonModel",
"version": "0.8.0",
"project_urls": {
"Homepage": "https://github.com/xyngular/py-xmodel",
"Repository": "https://github.com/xyngular/py-xmodel"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "864702de9eb8713c1f0ac22de998b9a736011c8fc791844be31af3b68d614fde",
"md5": "8ef1a4a587bcf45c1691907163b939f3",
"sha256": "681483600264fe5fd0131ee3f52261de21654c36471db1cd751473db019dc4e1"
},
"downloads": -1,
"filename": "xmodel-0.8.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8ef1a4a587bcf45c1691907163b939f3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 93845,
"upload_time": "2023-09-27T14:57:26",
"upload_time_iso_8601": "2023-09-27T14:57:26.327137Z",
"url": "https://files.pythonhosted.org/packages/86/47/02de9eb8713c1f0ac22de998b9a736011c8fc791844be31af3b68d614fde/xmodel-0.8.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f7858e10333aa893c90286f7fe4d8a973b244a2d689e6c1b1b468506a215555a",
"md5": "4e1c448a557c5ccc00720c0ee1c340dd",
"sha256": "fe85c23c98780bcc5a5a7c5be494b71f04b74162ec14d0543dc5f7a23e6d1f72"
},
"downloads": -1,
"filename": "xmodel-0.8.0.tar.gz",
"has_sig": false,
"md5_digest": "4e1c448a557c5ccc00720c0ee1c340dd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 82503,
"upload_time": "2023-09-27T14:57:28",
"upload_time_iso_8601": "2023-09-27T14:57:28.021065Z",
"url": "https://files.pythonhosted.org/packages/f7/85/8e10333aa893c90286f7fe4d8a973b244a2d689e6c1b1b468506a215555a/xmodel-0.8.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-27 14:57:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "xyngular",
"github_project": "py-xmodel",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "xmodel"
}