Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

jsonschema

4.26.0ActivePythie’s Index: 63

An implementation of JSON Schema validation for Python

Maintained. Last release 11 months ago, commits in 23 of the last 26 weeks. Weaker on release cadence and contributor spread.

Validation & SerializationFile Formats & Parsing
$pip install jsonschema
python-jsonschema/jsonschemaDocsPyPI
========== jsonschema ========== |PyPI| |Pythons| |CI| |ReadTheDocs| |Precommit| |Zenodo| .. |PyPI| image:: https://img.shields.io/pypi/v/jsonschema.svg :alt: PyPI version :target: https://pypi.org/project/jsonschema/ .. |Pythons| image:: https://img.shields.io/pypi/pyversions/jsonschema.svg :alt: Supported Python versions :target: https://pypi.org/project/jsonschema/ .. |CI| image:: https://github.com/python-jsonschema/jsonschema/workflows/CI/badge.svg :alt: Build status :target: https://github.com/python-jsonschema/jsonschema/actions?query=workflow%3ACI .. |ReadTheDocs| image:: https://readthedocs.org/projects/python-jsonschema/badge/?version=stable&style=flat :alt: ReadTheDocs status :target: https://python-jsonschema.readthedocs.io/en/stable/ .. |Precommit| image:: https://results.pre-commit.ci/badge/github/python-jsonschema/jsonschema/main.svg :alt: pre-commit.ci status :target: https://results.pre-commit.ci/latest/github/python-jsonschema/jsonschema/main .. |Zenodo| image:: https://zenodo.org/badge/3072629.svg :alt: Zenodo DOI :target: https://zenodo.org/badge/latestdoi/3072629 ``jsonschema`` is an implementation of the `JSON Schema <https://json-schema.org>`_ specification for Python. .. code:: python >>> from jsonschema import validate >>> # A sample schema, like what we'd get from json.load() >>> schema = { ... "type" : "object", ... "properties" : { ... "price" : {"type" : "number"}, ... "name" : {"type" : "string"}, ... }, ... } >>> # If no exception is raised by validate(), the instance is valid. >>> validate(instance={"name" : "Eggs", "price" : 34.99}, schema=schema) >>> validate( ... instance={"name" : "Eggs", "price" : "Invalid"}, schema=schema, ... ) # doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... ValidationError: 'Invalid' is not of type 'number' It can also be used from the command line by installing `check-jsonschema <https://github.com/python-jsonschema/check-jsonschema>`_. Features -------- * Full support for `Draft 2020-12 <https://python-jsonschema.readthedocs.io/en/latest/api/jsonschema/validators/#jsonschema.validators.Draft202012Validator>`_, `Draft 2019-09 <https://python-jsonschema.readthedocs.io/en/latest/api/jsonschema/validators/#jsonschema.validators.Draft201909Validator>`_, `Draft 7 <https://python-jsonschema.readthedocs.io/en/latest/api/jsonschema/validators/#jsonschema.validators.Draft7Validator>`_, `Draft 6 <https://python-jsonschema.readthedocs.io/en/latest/api/jsonschema/validators/#jsonschema.validators.Draft6Validator>`_, `Draft 4 <https://python-jsonschema.readthedocs.io/en/latest/api/jsonschema/validators/#jsonschema.validators.Draft4Validator>`_ and `Draft 3 <https://python-jsonschema.readthedocs.io/en/latest/api/jsonschema/validators/#jsonschema.validators.Draft3Validator>`_ * `Lazy validation <https://python-jsonschema.readthedocs.io/en/latest/api/jsonschema/protocols/#jsonschema.protocols.Validator.iter_errors>`_ that can iteratively report *all* validation errors. * `Programmatic querying <https://python-jsonschema.readthedocs.io/en/latest/errors/>`_ of which properties or items failed validation. Installation ------------ ``jsonschema`` is available on `PyPI <https://pypi.org/project/jsonschema/>`_. You can install using `pip <https://pip.pypa.io/en/stable/>`_: .. code:: bash $ pip install jsonschema Extras ====== Two extras are available when installing the package, both currently related to ``format`` validation: * ``format`` * ``format-nongpl`` They can be used when installing in order to include additional dependencies, e.g.: .. code:: bash $ pip install jsonschema'[format]' Be aware that the mere presence of these dependencies – or even the specification of ``format`` checks in a schema – do *not* activate format checks (as per the specification). Please read the `format validation documentation <https://python-jsonschema.readthedocs.io/en/latest/validate/#validating-formats>`_ for further details. About ----- I'm Julian Berman. ``jsonschema`` is on `GitHub <https://github.com/python-jsonschema/jsonschema>`_. Get in touch, via GitHub or otherwise, if you've got something to contribute, it'd be most welcome! If you feel overwhelmingly grateful, you can also `sponsor me <https://github.com/sponsors/Julian/>`_. And for companies who appreciate ``jsonschema`` and its continued support and growth, ``jsonschema`` is also now supportable via `TideLift <https://tidelift.com/subscription/pkg/pypi-jsonschema?utm_source=pypi-jsonschema&utm_medium=referral&utm_campaign=readme>`_. Release Information ------------------- v4.26.0 ======= * Decrease import time by delaying importing of ``urllib.request`` (#1416).

Popularity

Downloads / month
677.5M
GitHub stars
5K
Downloads, last 7 days
158.6M-1%
Stars, last 7 days
–
Direct dependents
7.4K
All dependents
65.8K

Pythie’s Index

How it works
63

Fair

Maintenance, out of 100

  • Recent release

    last release 325 days ago

  • Commit activity

    23/26 weeks with commits

  • Release cadence

    1 releases in 12 months

  • Issues & PRs handled

    69% closed in the past year

  • Contributor spread

    4 authors in last 100 commits

  • OpenSSF Scorecard

    8.3/10

Commits, last 26 weeks127

Releases

Latest
4.26.0
Released
Jan 7, 2026
Releases, 12 months
1
First release
Jan 2, 2012

Compatibility

Requires Python
>=3.10
Tested on
3.10 · 3.11 · 3.12 · 3.13 · 3.14
License
MIT (Permissive)

Keywords

data validationjsonjson schemajsonschemavalidationjson-schemaschema

Alternatives

Use instead of jsonschema: tools that do the same job, closest first.

Compare with jsonschema-rs →Compare with fastjsonschema →Compare with jschon →Compare all 4 →

  • jsonschema-rs0.63.2ActivePythie’s Index: 82

    A high-performance JSON Schema validator for Python

    Validation & SerializationFile Formats & Parsing8399.9M/moReleased Nov 26, 2026
  • fastjsonschema2.22.3ActivePythie’s Index: 83

    Fastest Python implementation of JSON schema

    Validation & Serialization503127.3M/moReleased Nov 1, 2026
  • jschon0.11.1ArchivedPythie’s Index: 4

    A JSON toolkit for Python developers.

    Validation & SerializationFile Formats & Parsing142299.5K/moReleased Oct 22, 2023
  • json-spec0.12.0StalePythie’s Index: 23

    Implements JSON Schema, JSON Pointer and JSON Reference.

    Validation & SerializationFile Formats & Parsing38291.5K/moReleased Apr 29, 2024
  • pykwalify1.8.0InactivePythie’s Index: 16

    Python lib/cli for JSON/YAML schema validation

    Validation & SerializationFile Formats & Parsing2962.6M/moReleased Dec 30, 2020
  • Cerberus1.3.8ActivePythie’s Index: 25

    Lightweight, extensible schema and data validation tool for Pythondictionaries.

    Validation & Serialization3.3K3.9M/moReleased Nov 6, 2025

Works well with

Use together with jsonschema: extensions, drivers, servers and companion tools.

  • referencingPythie’s Index: 53JSON Referencing + Python647.6M downloads/mo
  • openapi-schema-validatorPythie’s Index: 49OpenAPI schema validation for Python27.3M downloads/mo
  • rfc3339-validatorPythie’s Index: 19A pure python RFC3339 validator83.6M downloads/mo
  • jsonschema-pathPythie’s Index: 52JSONSchema Spec with object-oriented paths92M downloads/mo
  • check-jsonschemaPythie’s Index: 82A jsonschema CLI and pre-commit hook4.4M downloads/mo
  • datapackagePythie’s Index: 18Utilities to work with Data Packages as defined on specs.frictionlessdata.io127.4K downloads/mo