jsonschema-pydantic
Convert JSON Schemas to Pydantic models
Decision gist · record as of 2026-08-14
Yes, if you have a specific need to convert JSON Schemas to Pydantic models and can tolerate dormant maintenance. The package is simple, has low install friction, and carries no known vulnerabilities. However, verify Python and Pydantic version compatibility first, and be aware that no active support is available. Not recommended if you need ongoing updates or rely on cutting-edge Pydantic features.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with a single runtime dependency on pydantic.
- Maintenance is dormant—last release was 2024-02-03 and no commits since 2024-02-05, so expect no active support or updates.
License · maintenance · safety
(unclear) — License status is unclear; the package metadata does not declare an SPDX license or raw license text, so you cannot verify the legal terms before use.
last release 2024-02-03 (923 days) · last repo commit 2024-02-05 · 22 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 202,100 downloads/mo, #9,653 on PyPI
Alternatives
Verify before relying
pip install jsonschema-pydantic
from jsonschema_pydantic import jsonschema_to_pydantic
jsonschema = {
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "integer"},
},
"required": ["name"],
}
pydantic_model = jsonschema_to_pydantic(jsonschema)- Python version compatibility is unspecified; unclear which Python versions are actually supported.
- Scope of jsonschema feature coverage beyond the documented list (primitive types, objects, arrays, nested objects, optional fields, default values).
- Whether the generated Pydantic models work with current Pydantic v2 or are limited to v1.
What it is and what it does
jsonschema-pydantic is a lightweight utility that takes a JSON Schema object and generates a Pydantic model class from it. It handles common schema patterns—primitive types, objects, arrays, nesting, optional fields, and defaults—and outputs a ready-to-use Pydantic model for data validation. The package sits between schema definition and model instantiation, eliminating the need to hand-write Pydantic classes when you already have a schema.
The package depends only on pydantic and installs with no friction. However, it is dormant: the last commit was in February 2024, and there have been no releases or updates since. If you need active maintenance, bug fixes, or support for newer Pydantic versions or advanced schema features, this package may not be a reliable choice.
Use it for
- Generate Pydantic models from OpenAPI or JSON Schema specifications without manual class definition.
- Automate model creation in code-generation pipelines where schemas are the source of truth.
- Quickly prototype data validation layers when you have a schema but no corresponding Python types.
- Convert third-party JSON Schemas into Pydantic models for local validation and type safety.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have a specific need to convert JSON Schemas to Pydantic models and can tolerate dormant maintenance.
The package is simple, has low install friction, and carries no known vulnerabilities. However, verify Python and Pydantic version compatibility first, and be aware that no active support is available. Not recommended if you need ongoing updates or rely on cutting-edge Pydantic features.
Install
jsonschema-pydantic on PyPI
Before you install
Low friction install with a single runtime dependency on pydantic. Maintenance is dormant—last release was 2024-02-03 and no commits since 2024-02-05, so expect no active support or updates.
License in practice
License status is unclear; the package metadata does not declare an SPDX license or raw license text, so you cannot verify the legal terms before use.
Quickstart
pip install jsonschema-pydantic
from jsonschema_pydantic import jsonschema_to_pydantic
jsonschema = {
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "integer"},
},
"required": ["name"],
}
pydantic_model = jsonschema_to_pydantic(jsonschema)
Verify before relying
- Python version compatibility is unspecified; unclear which Python versions are actually supported.
- Scope of jsonschema feature coverage beyond the documented list (primitive types, objects, arrays, nested objects, optional fields, default values).
- Whether the generated Pydantic models work with current Pydantic v2 or are limited to v1.
Package facts
| License | Not declared unclear |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepydantic |
| Maintenance | Dormant 923 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 202,100 / month, #9,653 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: jsonschema_pydantic-0.6-py3-none-any.whl
Tags
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 › “jsonschema pydantic conversion”
- jsonschema-pydanticConverts JSON Schema definitions into Pydantic model classes,…
- linkmlLinkML is a modeling language for defining linked data schemas in…
- camel-converterConverts strings and dictionary keys between camelCase, snake_case,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also django-pydantic-field · jsoncompat · jsonschema-pydantic-converter · pydantic_core · jsonschema-typed-v2 · pydantic-spark · dydantic · ibm-quantum-schemas · eido · marshmallow-jsonschema