Skip to main content

JSON Schema Builder

Build JSON schemas easily in Python.

See documentation for more informations.

License Development Status Latest release Supported Python versions Supported Python implementations Download format Build status Code test coverage Code Health

Installation

pip install jsonschema-builder

Usage

import jsonschema
import jsb

schema = jsb.typed(
    jsb.schema(id='/schemas/myschema#', meta=jsb.draft04()),
    type='object',
    properties={
        'foo': jsb.typed(jsb.schema(), type='string'),
        'bar': jsb.typed(jsb.schema(), type='integer')
    }
)
data = {
    'foo': 'bar',
    'bar': 42
}

jsonschema.validate(data, schema)

Metadata

Release files for jsonschema-builder 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jsonschema-builder 0.1.1
File Size Uploaded Provenance Actions
jsonschema-builder-0.1.1.tar.gz 5.7 kB Without provenance Details for jsonschema-builder-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jsonschema-builder 0.1.1
File Interpreter ABI Platform Actions
jsonschema_builder-0.1.1-py3-none-any.whl Python 3 none any Details for jsonschema_builder-0.1.1-py3-none-any.whl

Total release size: 14.4 kB

Release files / jsonschema-builder-0.1.1.tar.gz

Download URL jsonschema-builder-0.1.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fa2eaa4e69effff4495c6abe8d93bfc22ed27b8de3a46a19b1d5fbc1dfb3bc13
BLAKE2b-256 checksum
How to use checksums
67e4c9f806675c901f72e24d4974431b08120d988bcc9657db523ad931c95391
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / jsonschema_builder-0.1.1-py3-none-any.whl

Download URL jsonschema_builder-0.1.1-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99785f7b24be1159020ea210403b9eff3f488630c45c1b5bd473a424e866ced2
BLAKE2b-256 checksum
How to use checksums
3dfa64da23a4e3b0b236ebc71cfed8b6df8bb87e5af3529d9f90d0302811d8c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for jsonschema-builder 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page