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.3.1.tar.gz
(15.0 kB
view hashes)
Built Distribution
Close
Hashes for jsonschema_default-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba03cc475b535cb3beb4c14b7b1841d503800575f16bd6a739936cbe7a749ffa |
|
MD5 | 9f14e1166be90501f8341e3f7c9d1b53 |
|
BLAKE2b-256 | e1b0911a020cdeffb2d781b9cec87419efd9f7df0cc6afe8320acd4fc97536b3 |