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.6.0.tar.gz
(14.9 kB
view hashes)
Built Distribution
Close
Hashes for jsonschema_default-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 593c4c990db50b4425d18d47d9fd841b8137b101d5901bfaab28c9ffbb845fa1 |
|
MD5 | 49e5e76d21d5ff89ca9cc8edb441bd45 |
|
BLAKE2b-256 | d361749ca8941f25399ebb81a6b77c63ce09cc0d7e3e86fb7f4f71fe256893a4 |