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.2.0.tar.gz
(14.6 kB
view hashes)
Built Distribution
Close
Hashes for jsonschema_default-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acac859f175f73d7fdb3a0a7847cfbfd5c856a53533e6ff181b8fbb1a03cc068 |
|
MD5 | ada3af8ff088324dfb21c2c6a89a2ad5 |
|
BLAKE2b-256 | 2497a7c84ae777c54bf4527b2e87c02c2b21117ab1088ca985120c7714864c07 |