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.1.tar.gz
(15.0 kB
view hashes)
Built Distribution
Close
Hashes for jsonschema_default-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b082bea0b62e7ba8084fe9f9fe40ac45c06f77bbf77c41d53938b3e3df743be |
|
MD5 | 1b982bf392abbbb9f1c5629e1375c556 |
|
BLAKE2b-256 | 11901bb908f9ac0c752252d6820ab14f2659dd08b91458a390868dda367d7026 |