Validate/generate IBANs and BICs
Gotta get schwifty with your IBANs
schwifty is a Python library that let’s you easily work with IBANs and BICs as specified by the ISO. IBAN is the Internation Bank Account Number and BIC the Business Identifier Code. Both are used for international money transfer.
schwifty lets you
- validate check-digits and the country specific format of IBANs
- validate format and country codes from BICs
- generate BICs from country and bank-code
- generate IBANs from country-code, bank-code and account-number.
- get the BIC associated to an IBAN’s bank-code
- access all relevant components as attributes
Since the IBAN specification and the mapping from BIC to bank_code is updated from time to time, schwifty uses CalVer for versioning with the scheme YY.0M.Micro.
To install schwifty, simply:
$ pip install schwifty
We use the black as code formatter. This avoids discussions about style preferences in the same way as gofmt does the job for Golang. The conformance to the formatting rules is checked in the CI pipeline, so that it is recommendable to install the configured pre-commit-hook, in order to avoid long feedback-cycles.
$ pre-commit install
You can also use the fmt Makefile-target to format the code or use one of the available editor integrations.
Since swift and swiftly were already taken by the OpenStack-project, but we somehow wanted to point out the connection to SWIFT, Rick and Morty came up with the idea to name the project schwifty.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size schwifty-2021.6.1-py3-none-any.whl (189.4 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size schwifty-2021.6.1.tar.gz (566.4 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for schwifty-2021.6.1-py3-none-any.whl