jsonschema-pydantic-0.6


توضیحات

Convert JSON Schemas to Pydantic models
ویژگی مقدار
سیستم عامل -
نام فایل jsonschema-pydantic-0.6
نام jsonschema-pydantic
نسخه کتابخانه 0.6
نگهدارنده []
ایمیل نگهدارنده []
نویسنده kreneskyp
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/kreneskyp/jsonschema-pydantic/
آدرس اینترنتی https://pypi.org/project/jsonschema-pydantic/
مجوز -
# jsonschema-pydantic Simple transform of jsonschema to pydantic models. ## Supported jsonschema features - primitive types - objects - arrays - nested objects - optional fields - default values ## Install ``` pip install jsonschema-pydantic ``` ## Usage ``` from jsonschema_pydantic import jsonschema_to_pydantic jsonschema = { "type": "object", "properties": { "name": {"type": "string"}, "age": {"type": "integer"}, }, "required": ["name"], } pydantic_model = jsonschema_to_pydantic(jsonschema) ``` ## Development Run pytest test suite: ``` make test ``` ### Linting Run all linters ``` make lint ``` ### Formatting Format python code: ``` make fmt ``` ### Documentation Generate documentation: ``` make docs ``` ### Contributions Read the [CONTRIBUTING.md](CONTRIBUTING.md) file.


نیازمندی

مقدار نام
=1.10. pydantic
- pytest
- coverage
- flake8
- black
- isort
- pytest-cov
- gitchangelog
- mkdocs
3.0.0,>=2.5. pydantic


نحوه نصب


نصب پکیج whl jsonschema-pydantic-0.6:

    pip install jsonschema-pydantic-0.6.whl


نصب پکیج tar.gz jsonschema-pydantic-0.6:

    pip install jsonschema-pydantic-0.6.tar.gz