hbldh / bankkonto

Python validation library for Swedish bank account numbers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bankkonto

image

image

A tool for cleaning, parsing and ultimately validating Swedish bank account numbers, primarily written to be used for web applications with form data.

Installation

Documentation

Will be available on ReadTheDocs eventually.

Usage

Direct usage for validating a bank account number:

Clean a entered string containing both clearing number and bank account number:

There is also a WTForms validator at bankkonto.flask.BankkontoValidator that can be used with e.g. Flask-WTF.

Tests

Run with pytest:

$ py.test tests/ --cov bankkonto --cov-report term-missing

About

Python validation library for Swedish bank account numbers

License:MIT License


Languages

Language:Python 100.0%