skillfed

types-jsonschema

Typing stubs for jsonschema

types-jsonschema v4.26.0.20260518 11.5M downloads/30d#1,386 on PyPI37
Permissive license Apache-2.0 Active released

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-jsonschema

uv

uv add types-jsonschema

poetry

poetry add types-jsonschema

Installing 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs for jsonschemajsonschema type hintsmypy jsonschema typesstatic type checking jsonschemapyright jsonschema annotationsjsonschema typing support
type-stubsstatic-analysis

More Software Development packages