Skip to main content

Validate/generate IBANs and BICs

Project description

https://img.shields.io/pypi/v/schwifty.svg?style=flat-square https://img.shields.io/github/workflow/status/mdomke/schwifty/lint-and-test?style=flat-square https://img.shields.io/pypi/l/schwifty.svg?style=flat-square https://readthedocs.org/projects/schwifty/badge/?version=latest&style=flat-square https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square

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.

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.

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

  • access all relevant components as attributes

Versioning

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.

Installation

To install schwifty, simply:

$ pip install schwifty

Development

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.

Project Information

schwifty is released under MIT license and its documentation lives at Read the Docs. The code is maintained on GitHub and packages are distributed on PyPI

Name

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.

https://i.cdn.turner.com/adultswim/big/video/get-schwifty-pt-2/rickandmorty_ep205_002_vbnuta15a755dvash8.jpg

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

schwifty-2021.6.1.tar.gz (566.4 kB view details)

Uploaded Source

Built Distribution

schwifty-2021.6.1-py3-none-any.whl (189.4 kB view details)

Uploaded Python 3

File details

Details for the file schwifty-2021.6.1.tar.gz.

File metadata

  • Download URL: schwifty-2021.6.1.tar.gz
  • Upload date:
  • Size: 566.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for schwifty-2021.6.1.tar.gz
Algorithm Hash digest
SHA256 01b512fc49818c8eab22fc1c40fd1fcb634ebd49755c663fa4e8f559f4bde779
MD5 70b24a8c8edf88066b93bdb787b8b662
BLAKE2b-256 631394fcb66ca110ae6f8317aa81ea458368b1eeae58e681b532829578ac5c91

See more details on using hashes here.

File details

Details for the file schwifty-2021.6.1-py3-none-any.whl.

File metadata

  • Download URL: schwifty-2021.6.1-py3-none-any.whl
  • Upload date:
  • Size: 189.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for schwifty-2021.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38a06c568387f94505499c7f83a1b99690a60ebcd82410ada91377a4a11d908f
MD5 d68fbf8e55037277750723c7d50ba651
BLAKE2b-256 7e584a882c519ab81da83896cface1574aa709e1716f36fc57e007715e8511b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page