Skip to content
Back to top
View this page

# Get schwifty with IBANs and BICs

Release v2025.9.0+dfsg (What’s new)

`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.

## Features

`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.

- generate random valid IBANs

- get the BIC associated to an IBAN’s bank-code

- access all relevant components as attributes

See the docs for more inforamtion.

## Installation

To install `schwifty`, simply:

    $ pip install schwifty

Note

Starting from version 2021.01.0 schwifty only supports Python 3.6+

## API documentation

- `schwifty` by example
  - Basics
  - Validation
  - Generation
  - Pydantic integration
- Developer Interface
  - IBAN
  - BBAN
  - BIC
  - Exceptions
- Troubleshooting
  - UnicodeDecodeError on import

- Changelog