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.4.0.tar.gz
(15.0 kB
view hashes)
Built Distribution
Close
Hashes for jsonschema_default-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6db9d9d1f4dbedbad5b08ab08727a9334588fbd8a4e09804686e0ccc2d5f5f0 |
|
MD5 | 3e4e27107ea98f142227d53b3c559ecb |
|
BLAKE2b-256 | b30c5089456f79525c1b4d28fc5441bfc1a871d959ac624dbe5082d586fd01ed |