classyjson-0.1.2
توضیحات
Wrap jsonschema in python classes
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | classyjson-0.1.2 |
| نام | classyjson |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dylan Gregersen |
| ایمیل نویسنده | an.email0101@gmail.com |
| آدرس صفحه اصلی | https://github.com/earthastronaut/classyjson |
| آدرس اینترنتی | https://pypi.org/project/classyjson/ |
| مجوز | MIT |
# Classy Json
Classy json is the best friend to invite to the party. He knows how to check all the other json that comes in and class them up.
# Quick Start
`pip install classyjson`
Create your objects with jsonschema definitions.
``` python
from classyjson import ClassyObject
class Config(ClassyObject):
schema = {
"properties": {
"version": {"type": "string"},
"verbosity": {"type": "integer"},
"items": {"type": "array"}
}
}
config = Config({
"version": "v1.0",
"verbosity": 1,
"items": [
1, 2, 3
]
})
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl classyjson-0.1.2:
pip install classyjson-0.1.2.whl
نصب پکیج tar.gz classyjson-0.1.2:
pip install classyjson-0.1.2.tar.gz