https://github.com/pydantic/pydantic-extra-types
Extra Pydantic types.
https://github.com/pydantic/pydantic-extra-types
countries mac-address phone-number pydantic python
Last synced: about 1 month ago
JSON representation
Extra Pydantic types.
- Host: GitHub
- URL: https://github.com/pydantic/pydantic-extra-types
- Owner: pydantic
- License: mit
- Created: 2023-02-06T10:44:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-03T22:28:58.000Z (about 2 months ago)
- Last Synced: 2025-05-03T23:24:56.706Z (about 2 months ago)
- Topics: countries, mac-address, phone-number, pydantic, python
- Language: Python
- Homepage:
- Size: 411 KB
- Stars: 247
- Watchers: 11
- Forks: 67
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
Awesome Lists containing this project
README
# Pydantic Extra Types
[](https://github.com/pydantic/pydantic-extra-types/actions?query=event%3Apush+branch%3Amain+workflow%3ACI)
[](https://codecov.io/gh/pydantic/pydantic-extra-types)
[](https://pypi.python.org/pypi/pydantic-extra-types)
[](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]"
```