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.1.0.tar.gz
(14.8 kB
view hashes)
Built Distribution
Close
Hashes for jsonschema_default-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b25040537d0eb304bb8ac6f7542d5f5813c65031f998ea585036715412d6a27 |
|
MD5 | a1cc13079077e368343ed1f58e581d19 |
|
BLAKE2b-256 | 3ce277314f1a826908b7f1c488e7699a58b018004c62fb588bd14a180ead996e |