$npx skillfedfor your agent

django-pydantic-field

Type-Safe Pydantic Schemas for Django JSONFields

Worth itPyPI Application FrameworksReleased Feb 20261.6M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — django_pydantic_field-0.5.4-py3-none-any.whl
v0.5.4 · released 2026-02-22 · Python >=3.10 · 3 runtime deps: pydantic, django, typing-extensions

Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a real friction point—type-safe JSON storage in Django. It's particularly valuable if you use Django REST Framework and need automatic schema generation, or if you want static type checking on JSON data. The dual Pydantic v1/v2 support makes it safe to adopt even if your environment is in transition.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 three straightforward runtime dependencies.
  • Actively maintained with a recent commit on 2026-02-22 and no known vulnerabilities.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in commercial and private projects with minimal restrictions.

last release 2026-02-22 (173 days) · last repo commit 2026-02-22 · 218 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,560,320 downloads/mo, #3,760 on PyPI

Verify before relying

pip install django-pydantic-field

from django.db import models
from django_pydantic_field import SchemaField
import pydantic

class Foo(pydantic.BaseModel):
    count: int
    slug: str = "default"

class MyModel(models.Model):
    foo: Foo = SchemaField()

model = MyModel(foo={"count": 42})
model.save()
assert isinstance(model.foo, Foo)
  • Whether forward reference resolution handles all edge cases in complex schema hierarchies.
  • Performance characteristics when handling large nested Pydantic structures in JSONFields.
  • Compatibility with custom Pydantic validators and field serializers in both v1 and v2.
Same gist for agents: .md · .json

What it is and what it does

django-pydantic-field bridges Pydantic and Django by allowing you to use Pydantic models as schemas for Django's JSONField. Instead of storing raw JSON and manually validating it, you define a Pydantic model and attach it to a SchemaField—the package then automatically parses incoming JSON into typed Pydantic instances and validates them against your schema. It handles both Pydantic v1 and v2 through a unified API, so you don't need to rewrite code if you upgrade.

The package integrates deeply with Django's ecosystem: it works with Django Forms and the Admin interface for validation and editing, provides typed serializers and parsers for Django REST Framework with automatic OpenAPI schema generation, and supports forward references for schemas defined later in your code. Type checkers like mypy and pyright can infer the correct types for your model fields, making it safe to use in statically typed codebases.

Use it for

  • Store complex nested configuration objects in a Django model with automatic Pydantic validation and type safety.
  • Build Django REST Framework APIs where request/response bodies are strongly typed Pydantic models with auto-generated OpenAPI docs.
  • Migrate from raw JSON storage to typed schemas without rewriting your entire data layer.
  • Use Django Admin to edit JSON data with form validation powered by Pydantic field constraints.
  • Define forward-referenced schemas that resolve lazily, allowing circular dependencies between models.

Worth the install?

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

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, low install friction, and solves a real friction point—type-safe JSON storage in Django. It's particularly valuable if you use Django REST Framework and need automatic schema generation, or if you want static type checking on JSON data. The dual Pydantic v1/v2 support makes it safe to adopt even if your environment is in transition.

Install

django-pydantic-field on PyPI

Before you install

Low friction install with three straightforward runtime dependencies. Actively maintained with a recent commit on 2026-02-22 and no known vulnerabilities.

Requires Python 3.10 or later.

License in practice

MIT license permits unrestricted use, modification, and distribution in commercial and private projects with minimal restrictions.

Quickstart

pip install django-pydantic-field

from django.db import models
from django_pydantic_field import SchemaField
import pydantic

class Foo(pydantic.BaseModel):
    count: int
    slug: str = "default"

class MyModel(models.Model):
    foo: Foo = SchemaField()

model = MyModel(foo={"count": 42})
model.save()
assert isinstance(model.foo, Foo)

Verify before relying

  • Whether forward reference resolution handles all edge cases in complex schema hierarchies.
  • Performance characteristics when handling large nested Pydantic structures in JSONFields.
  • Compatibility with custom Pydantic validators and field serializers in both v1 and v2.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
pydanticdjangotyping-extensions
MaintenanceActively maintained 173 days since the last release
Last repo commit
First released
Downloads1,560,320 / month, #3,760 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaFramework :: DjangoFramework :: Django :: 3Framework :: Django :: 3.1Framework :: Django :: 3.2Framework :: Django :: 4Framework :: Django :: 4.0Framework :: Django :: 4.1Framework :: Django :: 4.2Framework :: Django :: 5Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Framework :: Django :: 6.0Framework :: PydanticFramework :: Pydantic :: 1Framework :: Pydantic :: 2Intended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: django_pydantic_field-0.5.4-py3-none-any.whl

Tags

Capabilities
django jsonfield pydantictype-safe django json schemapydantic django integrationdjango rest framework pydanticdjango admin pydantic modelsjson validation djangopydantic v1 v2 django
Topics
django-integrationpydantic-schemastype-safety
PyPI keywords
djangopydanticjsonschema

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 › “django jsonfield pydantic”

  • django-pydantic-fieldProvides type-safe Pydantic model schemas for Django JSONFields with…
  • jsonfieldA Django model field that stores and retrieves JSON data with…
  • django-jsonfieldProvides a JSONField for Django models that stores JSON-encodable…

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

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also jsonschema-pydantic · pydantic-extra-types · pydantic-partial · safety-schemas · drf-pydantic · pydantic-function-models · sigstore-models · pydantic_yaml · json-schema-to-pydantic · pydantic-compat