Initial commit schwifty

https://github.com/mdomke/schwifty

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

Latest CHANGELOG entry
2022.09.0 - 2022/16/09
Added

    IBAN validation for Senegal mkopec87

Changed

    Refactored most of the scripts to generate the bank registry to use Pandas @pebosi
    Updated bank registry for Austria, Belgium, Germany, Spain, Hungary, Netherlands and Poland.
This commit is contained in:
Richard PALO 2022-12-30 18:01:36 +01:00
commit 70822f4cca
2 changed files with 40 additions and 0 deletions

17
.SRCINFO Normal file
View file

@ -0,0 +1,17 @@
pkgbase = python-schwifty
pkgdesc = Validate/generate IBANS and BICS
pkgver = 2022.9.0
pkgrel = 1
url = http://github.com/mdomke/schwifty
arch = any
license = MIT
makedepends = python-build
makedepends = python-installer
makedepends = python-wheel
depends = python>=3.7
depends = python-iso3166
depends = python-pycountry
source = https://files.pythonhosted.org/packages/source/s/schwifty/schwifty-2022.9.0.tar.gz
sha256sums = ff3c4ad2951f8391b9c3d13e401b751f5d8b77981673e59a91074d5513121620
pkgname = python-schwifty

23
PKGBUILD Normal file
View file

@ -0,0 +1,23 @@
# Contributor: Richard PALO <richard.palo@free.fr>
pkgname=python-schwifty
_name=${pkgname#python-}
pkgver=2022.9.0
pkgrel=1
pkgdesc="Validate/generate IBANS and BICS"
arch=('any')
url="http://github.com/mdomke/schwifty"
license=('MIT')
makedepends=(python-build python-installer python-wheel)
depends=('python>=3.7' python-iso3166 python-pycountry)
source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz)
sha256sums=('ff3c4ad2951f8391b9c3d13e401b751f5d8b77981673e59a91074d5513121620')
build() {
cd "$srcdir/$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}