mdomke / schwifty

IBAN parsing and validation

Home Page:https://schwifty.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement "Pydantic protocol"

Kludex opened this issue Β· comments

Hi there πŸ‘‹

I'm not sure if you are familiar with Pydantic, but it's a relatively popular package within the Python community to do data validation/parsing/coercion.

I'd like to know if it would be possible to implement the __get_pydantic_core_schema__ on schwifty.

If helps on the decision, pandas accepted the request: pandas-dev/pandas#53999. πŸ™

As an alternative, we were implementing this on pydantic-extra-types: pydantic/pydantic-extra-types#65.

What is schwifty? Is this related to SWIFT routing nr.?

@waveman68 schwifty is indeed a library to work with SWIFT compliant Internation Bank Account Numbers (IBAN) and Bank Identifier Codes (BIC).

@Kludex I will add support for the pydatnic protocol guarded with the optional dependency schwifty[pydantic]

Nice! Thanks.

Implemented in 2023.10.0