types-jsonschema
Typing stubs for jsonschema
What it is and what it does
This is a type stub package that provides type annotations for the jsonschema library. It allows static type checkers to understand and validate code that uses jsonschema. The stubs are maintained as part of the typeshed project and are tested against mypy 2.1.0 and pyright 1.1.409.
When installed, the stubs enable your type checker to catch type errors in code that uses jsonschema for JSON validation. This is useful in larger codebases where type safety matters and you want to validate schema definitions and validation calls before runtime.
Use it for:
- Enable type checkers to validate code that uses jsonschema for JSON validation.
- Catch type errors in schema definitions and validation calls before runtime.
- Provide IDE autocomplete and type hints when working with jsonschema.
- Ensure type consistency in data validation pipelines that rely on jsonschema.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for the jsonschema package, enabling static type checkers like mypy and pyright to validate code that uses jsonschema.
Yes, if you use jsonschema and run static type checking. It adds no runtime overhead and works with mypy 2.1.0 and pyright 1.1.409. Install it alongside jsonschema in projects where type safety is a priority. Not necessary if you don't use a type checker.
Install
types-jsonschema on PyPI
pip
pip install types-jsonschemauv
uv add types-jsonschemapoetry
poetry add types-jsonschemaInstalling types-jsonschema
Before you install
Low friction install with a single runtime dependency (referencing). Actively maintained as part of typeshed, with recent updates and no known vulnerabilities.
License in practice
Apache-2.0 permissive license allows use in most projects without significant restrictions.
Quickstart
pip install types-jsonschema
# In your code, import jsonschema normally;
# type checkers will use the stubs automatically
import jsonschema
schema = {"type": "object"}
jsonschema.validate({"key": "value"}, schema)
Requires Python 3.10 or later.
Verify before relying
- Whether the stubs cover all jsonschema 4.26.0 APIs or only a subset.
- How frequently the stubs are updated relative to jsonschema releases.
- Whether type checker integration works transparently without additional configuration.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — referencing |
| Maintenance | actively maintained — 88 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 11,523,610/month — #1,386 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_jsonschema-4.26.0.20260518-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-tomlProvides type hints for the toml package,…
permissive · top 1,000 on PyPI
types-html5libProvides type hints for the html5lib HTML…
permissive · top 5,000 on PyPI
types-ujsonProvides type hints for JSON serialization…
permissive · top 5,000 on PyPI
types-simplejsonProvides type annotations for the simplejson…
permissive · top 5,000 on PyPI
types-jmespathProvides type annotations for the jmespath…
permissive · top 5,000 on PyPI
types-coloramaProvides type stubs for colorama, enabling…
permissive · top 5,000 on PyPI
types-pysftpProvides type hints for the pysftp package,…
permissive · top 15,000 on PyPI
types-python-http-clientProvides type hints for python-http-client,…
permissive · top 15,000 on PyPI
check-jsonschemaA command-line tool and pre-commit hook that…
permissive · top 5,000 on PyPI
types-python-joseProvides type hints for the python-jose…
permissive · top 5,000 on PyPI