--- id: pydantic-extra-types version: "2.11.1" license: MIT license_treatment: permissive maintenance: active --- # pydantic-extra-types — Extra Pydantic types. License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install pydantic-extra-types uv add pydantic-extra-types poetry add pydantic-extra-types ## Description # Pydantic Extra Types [![CI](https://github.com/pydantic/pydantic-extra-types/actions/workflows/ci.yml/badge.svg)](https://github.com/pydantic/pydantic-extra-types/actions/workflows/ci.yml) [![Coverage](https://codecov.io/gh/pydantic/pydantic-extra-types/branch/main/graph/badge.svg)](https://codecov.io/gh/pydantic/pydantic-extra-types) [![pypi](https://img.shields.io/pypi/v/pydantic-extra-types.svg)](https://pypi.python.org/pypi/pydantic-extra-types) [![license](https://img.shields.io/github/license/pydantic/pydantic-extra-types.svg)](https://github.com/pydantic/pydantic-extra-types/blob/main/LICENSE) A place for pydantic types that probably shouldn't exist in the main pydantic lib. See [pydantic/pydantic#5012](https://github.com/pydantic/pydantic/issues/5012) for more info. ## Installation Install this library with the desired extras dependencies as listed in [project.optional-dependencies](./pyproject.toml). For example, if pendulum support was desired: ```shell # via uv $ uv add "pydantic-extra-types[pendulum]" # via pip $ pip install -U "pydantic-extra-types[pendulum]" ``` ## AI interpretation — verify before relying 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. 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. [View on SkillFed](https://skillfed.io/packages/pydantic-extra-types) · [View on PyPI](https://pypi.org/project/pydantic-extra-types/)