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.5.0.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for jsonschema_default-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbe8d39d36aaf0087b9a3efe550fccc076749546be3170b79c04a9082f449a4a |
|
MD5 | d28ace142774c9e2144c328400c1b54c |
|
BLAKE2b-256 | 48fd6d969157fe72561883b50643ce5d6948d75ba775ef7f8e3e5088a2c901ff |