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 details)
Built Distribution
File details
Details for the file jsonschema_default-1.6.0.tar.gz
.
File metadata
- Download URL: jsonschema_default-1.6.0.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c653ec0e5011fa7514f83442fba5813625c9af80cc535708d53c2eeebadf064b |
|
MD5 | 33f5a7cd8911446a48b796cf60ae71e8 |
|
BLAKE2b-256 | a0acc316b0fb90f9b0cc117a0e8ec6838725058ef1cdc330fb9fb60fdea74bfb |
File details
Details for the file jsonschema_default-1.6.0-py3-none-any.whl
.
File metadata
- Download URL: jsonschema_default-1.6.0-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 593c4c990db50b4425d18d47d9fd841b8137b101d5901bfaab28c9ffbb845fa1 |
|
MD5 | 49e5e76d21d5ff89ca9cc8edb441bd45 |
|
BLAKE2b-256 | d361749ca8941f25399ebb81a6b77c63ce09cc0d7e3e86fb7f4f71fe256893a4 |