Create default objects from a JSON schema
Project description
jsonschema-instance
A Python package that creates default objects from a JSON schema.
Note
This is not a validator. Inputs should be valid JSON schemas. For Python you can use the jsonschema package to validate schemas.
Installation
pip install jsonschema-default
Usage
import jsonschema_default
default_obj = jsonschema_default.create_from("<schema>")
Development
- Install and configure Poetry
pip install --user poetry
See Installation for the official guide.
- Install the dependencies using
# Configure poetry to create a local venv directory
poetry config virtualenvs.in-project true
poetry install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jsonschema-default-1.0.3.tar.gz
(14.6 kB
view hashes)
Built Distribution
Close
Hashes for jsonschema_default-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fee26d7394d68ce6671945df9ec5c6bd8090ca849ffaa7dd22fb09833283711a |
|
MD5 | c33b60dd20a54188e49dbc69ed7b3666 |
|
BLAKE2b-256 | 513189116ac5fa5c6567c730078e62caec22a8ca716005b5e3fda5168fbaf35d |