$npx skillfedfor your agent

fastjsonschema

Fastest Python implementation of JSON schema

With conditionsPyPI Python ModulesReleased Jul 2026154.5M downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — fastjsonschema-2.22.1-py3-none-any.whl
v2.22.1 · released 2026-07-27 · Python >=3.10

Yes, if you validate JSON against the same schema repeatedly and performance matters. The zero runtime dependencies and active maintenance make it a low-risk addition. If you validate schemas infrequently or need detailed error reporting, a standard validator may be simpler. No known vulnerabilities as of 2026-08-14.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low friction install with no runtime dependencies.
  • Actively maintained as of 2026-07-27 with recent commits and a stable codebase; supports Python 3.10 through 3.14.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows use in commercial and proprietary projects with minimal restrictions; attribution required.

last release 2026-07-27 (18 days) · last repo commit 2026-08-09 · 495 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 154,525,318 downloads/mo, #263 on PyPI

Verify before relying

pip install fastjsonschema

import fastjsonschema

validate = fastjsonschema.compile({"type": "object"})
validate({"key": "value"})
  • Whether the compiled validator approach provides measurable speed gains over standard jsonschema library in typical workloads.
  • Whether validation error messages are as detailed as alternatives when schema violations occur.
Same gist for agents: .md · .json

What it is and what it does

fastjsonschema is a JSON Schema validator that compiles schemas into Python code rather than interpreting them at validation time. This approach trades schema compilation overhead for faster per-validation execution, making it useful when the same schema is applied to many documents. It has no runtime dependencies beyond Python itself and supports current Python versions from 3.10 onward.

The package is positioned as a performance-focused alternative to standard JSON schema validators. It generates optimized validation functions from JSON Schema definitions, which can be called repeatedly on incoming data. This is particularly relevant for high-throughput scenarios like API request validation, data pipeline filtering, or configuration file checking where the schema remains constant but validation happens frequently.

Use it for

  • Validate API request bodies against a fixed schema in web frameworks handling many requests.
  • Filter or validate records in data pipelines where the same schema applies to thousands of items.
  • Check configuration files or data exports against a predefined JSON Schema specification.
  • Build schema-driven data validation into ETL processes where performance matters.
  • Enforce data contracts in microservices that receive JSON payloads from multiple sources.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you validate JSON against the same schema repeatedly and performance matters.

The zero runtime dependencies and active maintenance make it a low-risk addition. If you validate schemas infrequently or need detailed error reporting, a standard validator may be simpler. No known vulnerabilities as of 2026-08-14.

Install

fastjsonschema on PyPI

Before you install

Low friction install with no runtime dependencies. Actively maintained as of 2026-07-27 with recent commits and a stable codebase; supports Python 3.10 through 3.14.

Requires Python 3.10 or later.

License in practice

BSD-3-Clause permissive license allows use in commercial and proprietary projects with minimal restrictions; attribution required.

Quickstart

pip install fastjsonschema

import fastjsonschema

validate = fastjsonschema.compile({"type": "object"})
validate({"key": "value"})

Verify before relying

  • Whether the compiled validator approach provides measurable speed gains over standard jsonschema library in typical workloads.
  • Whether validation error messages are as detailed as alternatives when schema violations occur.

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 18 days since the last release
Last repo commit
First released
Downloads154,525,318 / month, #263 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Libraries :: Python Modules

Evidence: fastjsonschema-2.22.1-py3-none-any.whl

Tags

Capabilities
json schema validationfast json validatorjson schema compilervalidate json datajson schema pythonschema validation libraryjson data validation
Topics
json-validationschema-compilationperformance-focused

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “json schema validation”

  • fastjsonschemaValidates JSON data against JSON Schema specifications using compiled…
  • jsonschemajsonschema validates Python data structures against JSON Schema…
  • jsonschema-specificationsProvides JSON Schema metaschemas, vocabularies, and specification…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also check-jsonschema · dataclasses-jsonschema · kcidb-io · jschon · kubernetes-validate · trafaret · swagger-spec-validator · flex · colander · ocsf-lib