Skip to main content

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


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)

Uploaded Source

Built Distribution

jsonschema_default-1.6.0-py3-none-any.whl (15.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page