unionai-oss / pandera

A light-weight, flexible, and expressive statistical data testing library
https://www.union.ai/pandera
MIT License
3.34k stars 308 forks source link

pydantic_extra_types #1805

Open iBuitron opened 1 month ago

iBuitron commented 1 month ago

Hi! There are plans to add pydantic_extra_types?

https://docs.pydantic.dev/2.0/usage/types/extra_types/extra_types/

thx!

cosmicBboy commented 1 month ago

hi @iBuitron, are you thinking of first-class support for these types?

I haven't tested this, but if you don't mind a performance hit, you should be able to use these leveraging the pandera-pydantic integration: https://pandera.readthedocs.io/en/stable/pydantic_integration.html

If you're thinking first-class support for Color, Payment Card, Phone Numbers, Routing Address, and MAC address types, I give my blessing to anyone who wants to make PRs for them!