pydantic-extra-types
Extra Pydantic types.
Decision gist · record as of 2026-08-14
Yes. Low install friction, permissive MIT license, active maintenance, zero known vulnerabilities, and tight integration with Pydantic v2 make this a safe, practical choice if you need types beyond Pydantic's standard set. Install only if you actually need one of its specialized types; it's not a general-purpose enhancement.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later and pydantic v2 (as indicated by Framework :: Pydantic :: 2 classifier).
- Low friction install with only two runtime dependencies (pydantic and typing-extensions).
- Actively maintained as of August 2026 with recent commits; marked Production/Stable.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-03-16 (151 days) · last repo commit 2026-08-02 · 329 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 69,555,564 downloads/mo, #471 on PyPI
Alternatives
Verify before relying
pip install pydantic-extra-types
from pydantic import BaseModel
from pydantic_extra_types import SomeExtraType
class MyModel(BaseModel):
field: SomeExtraType- Which specific extra types are included beyond what the excerpt mentions (pendulum support is shown as an optional extra).
- Whether optional extras (like pendulum) require additional system dependencies or have their own install friction.
What it is and what it does
Pydantic Extra Types is a companion library to Pydantic v2 that houses type validators and serializers deemed too specialized or niche for inclusion in Pydantic itself. It acts as an incubator for domain-specific types that extend Pydantic's validation capabilities without bloating the core library. The package is designed to be lightweight and modular—you install only the extras you need via optional dependencies (e.g., pendulum support for date/time handling).
The library is actively maintained and production-ready, with a small but focused dependency footprint (only pydantic and typing-extensions at runtime). It supports modern Python versions (3.9 through 3.14) and integrates seamlessly into existing Pydantic v2 projects. If you need specialized types beyond Pydantic's standard offerings, this is where to find them without waiting for them to be added to the main library.
Use it for
- Add domain-specific validators to Pydantic models when the built-in types don't cover your use case.
- Use optional extras like pendulum for enhanced date/time handling in Pydantic schemas.
- Extend Pydantic v2 projects with niche types without forking or maintaining custom validators.
- Prototype new type validators that may eventually graduate to the main Pydantic library.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, permissive MIT license, active maintenance, zero known vulnerabilities, and tight integration with Pydantic v2 make this a safe, practical choice if you need types beyond Pydantic's standard set. Install only if you actually need one of its specialized types; it's not a general-purpose enhancement.
Install
pydantic-extra-types on PyPI
Before you install
Low friction install with only two runtime dependencies (pydantic and typing-extensions). Actively maintained as of August 2026 with recent commits; marked Production/Stable.
Requires Python 3.9 or later and pydantic v2 (as indicated by Framework :: Pydantic :: 2 classifier).
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install pydantic-extra-types
from pydantic import BaseModel
from pydantic_extra_types import SomeExtraType
class MyModel(BaseModel):
field: SomeExtraType
Verify before relying
- Which specific extra types are included beyond what the excerpt mentions (pendulum support is shown as an optional extra).
- Whether optional extras (like pendulum) require additional system dependencies or have their own install friction.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespydantictyping-extensions |
| Maintenance | Actively maintained 151 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 69,555,564 / month, #471 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: MacOS XFramework :: PydanticFramework :: Pydantic :: 2Intended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseOperating System :: POSIX :: LinuxOperating System :: UnixProgramming 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.14Programming Language :: Python :: 3.9Topic :: InternetTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pydantic_extra_types-2.11.1-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 › “pydantic custom types”
- pydantic-extra-typesProvides additional type validators and serializers for Pydantic v2…
- graphene-pydanticConverts Pydantic models into GraphQL object types and input types…
- sigstore-rekor-typesProvides Python data models for Rekor's API types, enabling type-safe…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
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.
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.
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.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
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…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also django-pydantic-field · traittypes · drf-pydantic · numpydantic · pydantic-compat · autodoc_pydantic · pydantic_yaml · sigstore-rekor-types · eip712 · dbt-artifacts-parser