Giter Site home page Giter Site logo

kennell / python-fints Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raphaelm/python-fints

0.0 2.0 0.0 44 KB

Minimal pure-python FinTS (formerly known as HBCI) implementation

Home Page: https://pypi.python.org/pypi/fints

License: GNU Lesser General Public License v3.0

Python 100.00%

python-fints's Introduction

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, including access to holding accounts
  • Sparkasse
  • Ing-Diba
  • CortalConsors, including access to holding accounts
  • DKB
  • NIBC Direct
  • Wüstenrot
  • comdirekt

Usage

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 [email protected]

License: LGPL

This is a quite close port of the fints-hbci-php implementation that was released by Markus Schindler under the MIT license. Thanks for your work!

python-fints's People

Contributors

raphaelm avatar felixschwarz avatar joker234 avatar gonium avatar entequak avatar elohmeier avatar pabra avatar rohieb avatar rixx avatar

Watchers

Kevin Kennell avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.