Skip to main content

Pure-python FinTS 3.0 (formerly known as HBCI) implementation

Project description

PyFinTS
=======

This is a pure-python implementation of FinTS (formerly known as HBCI), a
online-banking protocol commonly supported by German banks.

Limitations
-----------

* Only FinTS 3.0 is supported
* Only PIN/TAN authentication is supported, no signature cards
* Only a number of reading operations are currently supported
* Supports Python 3.4+

Banks tested:

* GLS Bank eG
* Triodos Bank
* BBBank eG
* Postbank
* [1822direkt](https://www.1822direkt.de/service/zugang-zum-konto/softwarebanking-mit-hbci/), including access to holding accounts
* Sparkasse
* Ing-Diba
* CortalConsors, including access to holding accounts
* DKB
* NIBC Direct
* Wüstenrot
* comdirect, including access to holding accounts

Usage
-----

```python
import logging
from datetime import date
from fints.client import FinTS3PinTanClient

logging.basicConfig(level=logging.DEBUG)
f = FinTS3PinTanClient(
'123456789', # Your bank's BLZ
'myusername',
'mypin',
'https://mybank.com/…' # endpoint, e.g.: https://hbci-pintan.gad.de/cgi-bin/hbciservlet
# for German banks, see http://www.hbci-zka.de/institute/institut_auswahl.htm
)

accounts = f.get_sepa_accounts()
print(accounts)
# [SEPAAccount(iban='DE12345678901234567890', bic='ABCDEFGH1DEF', accountnumber='123456790', subaccount='',
# blz='123456789')]

statement = f.get_statement(accounts[0], date(2016, 12, 1), date.today())
print([t.data for t in statement])
# The statement is a list of transaction objects as parsed by the mt940 parser, see
# https://mt940.readthedocs.io/en/latest/mt940.html#mt940.models.Transaction
# for documentation. Most information is contained in a dict accessible via their
# ``data`` property

# for retrieving the holdings of an account:
holdings = f.get_holdings(accounts[0])
# holdings contains a list of namedtuple values containing ISIN, name,
# market_value, pieces, total_value and valuation_date as parsed from
# the MT535 message.
```

Credits and License
-------------------

Author: Raphael Michel <mail@raphaelmichel.de>

License: LGPL

This is a quite close port of the [fints-hbci-php](https://github.com/mschindler83/fints-hbci-php)
implementation that was released by Markus Schindler under the MIT license.
Thanks for your work!

Project details


Download files

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

Source Distribution

fints-0.3.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fints-0.3.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file fints-0.3.0.tar.gz.

File metadata

  • Download URL: fints-0.3.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fints-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0350c8aaddd54ae2f50790686e4603d2ae540dcfa42417fb6027dc7cc531844a
MD5 1c1914677900b157a1488d3939272bc4
BLAKE2b-256 6e169af5d8aac71406c5d7b84b390fc52c04229fdcd44b9bc86151a9e599da7c

See more details on using hashes here.

File details

Details for the file fints-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fints-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1797871e981e616d6b0a2229fc7b0c421f185e269b0646943e45187bfb9edd56
MD5 9106055972ab0f672488f88d87972d00
BLAKE2b-256 90696b26b133ef4b183f41c80c35a31eac10a7088d197854b4928144b0444c30

See more details on using hashes here.

Supported by

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