pydantic / pydantic-extra-types

Extra Pydantic types.
MIT License
176 stars 47 forks source link

Add granular dependency extras #175

Closed YaraslauZhylko closed 3 months ago

YaraslauZhylko commented 3 months ago

Allow requiring specifc extra dependencies:

pip install pydantic-extra-types[phonenumbers]==2.7.0
pydantic-extra-types = {version = "2.7.0", extras = ["phonenumbers"]}

As of now the only extra available is all that installs dependencies that the user may not need:

all = ["pendulum (>=3.0.0,<4.0.0)", "phonenumbers (>=8,<9)", "pycountry (>=23)", "python-ulid (>=1,<2)", "python-ulid (>=1,<3)"]