pydantic-extra-types
Extra Pydantic types.
Install
pydantic-extra-types on PyPI
pip
pip install pydantic-extra-typesuv
uv add pydantic-extra-typespoetry
poetry add pydantic-extra-typesPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pydantic, typing-extensions |
| Maintenance | actively maintained — 150 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: pydantic_extra_types-2.11.1-py3-none-any.whl
About pydantic-extra-types
from the package's own PyPI description — quoted content, verbatim
Pydantic Extra Types
CI (image) Coverage (image) pypi (image) license (image)
A place for pydantic types that probably shouldn't exist in the main pydantic lib.
See pydantic/pydantic#5012 for more info.
Installation
Install this library with the desired extras dependencies as listed in project.optional-dependencies.
For example, if pendulum support was desired:
# via uv
$ uv add "pydantic-extra-types[pendulum]"
# via pip
$ pip install -U "pydantic-extra-types[pendulum]"
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Provides additional type validators and serializers for Pydantic v2 that extend beyond the core library, including specialized types for common use cases like phone numbers, MAC addresses, and other domain-specific formats.
Low friction install with only two lightweight runtime dependencies (pydantic and typing-extensions). Actively maintained with a recent release 150 days ago and ongoing repository activity.
MIT license permits unrestricted commercial and private use with minimal obligations—only attribution is required.
Usage
pip install pydantic-extra-types
from pydantic import BaseModel
from pydantic_extra_types.phone_numbers import PhoneNumber
class Contact(BaseModel):
phone: PhoneNumber
Requires Python 3.9 or later and a working Pydantic v2 installation.
Verdict: A stable, actively maintained extension library for Pydantic v2 with no known vulnerabilities, minimal dependencies, and permissive licensing. Suitable for projects needing specialized type validation beyond Pydantic's core offerings.
Needs verification
- Which specific extra types are included and whether optional dependencies (e.g., pendulum) are required for all or only some types.
- Whether this package is officially maintained by the Pydantic team or is a community-supported extension.
Similar packages
permissive · top 1,000 on PyPI
pendulumpermissive · top 1,000 on PyPI
email-validatorpermissive · top 1,000 on PyPI
poetrypermissive · top 1,000 on PyPI
jsonschemapermissive · top 100 on PyPI
httpx2permissive · top 1,000 on PyPI
pydantic-graphpermissive · top 1,000 on PyPI
idnapermissive · top 100 on PyPI
djangorestframeworkpermissive · top 1,000 on PyPI
eval-type-backportpermissive · top 1,000 on PyPI