skillfed

pydantic-extra-types

Extra Pydantic types.

pydantic-extra-types Permissive license MIT Active 329 v2.11.1 released

Install

pydantic-extra-types on PyPI

pip

pip install pydantic-extra-types

uv

uv add pydantic-extra-types

poetry

poetry add pydantic-extra-types

Package 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

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

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.
pydantic custom typespydantic validatorspydantic type extensionsadvanced pydantic typespydantic domain typespydantic serializerspydantic type library

Similar packages