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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jsonschema_default-1.8.1.tar.gz.
File metadata
- Download URL: jsonschema_default-1.8.1.tar.gz
- Upload date:
- Size: 49.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77e35e4a95519c7dbdbe25438c00af33c17bb766cbb0a29a2aa9d645ee3c1399
|
|
| MD5 |
b8dd158ab7a5d454a8a74d7398a45f65
|
|
| BLAKE2b-256 |
66eabf5bd72c4b9f9618b243d9dd373c84b2ee6240a90e2d209ce00e01dff476
|
File details
Details for the file jsonschema_default-1.8.1-py3-none-any.whl.
File metadata
- Download URL: jsonschema_default-1.8.1-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27bc3234aa633d86935354c1f0e5d41c696851d7c20e9882d2da221469d25ad1
|
|
| MD5 |
e11b2d357f061c85ef30521542eb8b85
|
|
| BLAKE2b-256 |
58cb1d8d3b3b528cee2961f90db0939632d5faec24d5ef98c5ed2b90a1d3ff9b
|