pydantic-extra-types2.10.6
pydantic-extra-types2.10.6
Published
Extra Pydantic types.
pip install pydantic-extra-types
Package Downloads
Project URLs
Requires Python
>=3.8
Dependencies
- pydantic
>=2.5.2 - typing-extensions
- cron-converter
>=1.2.2; extra == "all" - pendulum
<4.0.0,>=3.0.0; extra == "all" - phonenumbers
<10,>=8; extra == "all" - pycountry
>=23; extra == "all" - pymongo
<5.0.0,>=4.0.0; extra == "all" - python-ulid
<2,>=1; python_version < "3.9" and extra == "all" - python-ulid
<4,>=1; python_version >= "3.9" and extra == "all" - pytz
>=2024.1; extra == "all" - semver
>=3.0.2; extra == "all" - semver
~=3.0.2; extra == "all" - tzdata
>=2024.1; extra == "all" - cron-converter
>=1.2.2; extra == "cron" - pendulum
<4.0.0,>=3.0.0; extra == "pendulum" - phonenumbers
<10,>=8; extra == "phonenumbers" - pycountry
>=23; extra == "pycountry" - python-ulid
<2,>=1; python_version < "3.9" and extra == "python-ulid" - python-ulid
<4,>=1; python_version >= "3.9" and extra == "python-ulid" - semver
>=3.0.2; extra == "semver"
Pydantic Extra Types
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]"