Fio Bank API in Python
Project description
# fiobank
[![PyPI version](https://badge.fury.io/py/redis-collections.svg)](https://badge.fury.io/py/redis-collections) [![Build Status](https://travis-ci.org/honzajavorek/fiobank.svg?branch=master)](https://travis-ci.org/honzajavorek/fiobank)
[Fio Bank API](http://www.fio.cz/bank-services/internetbanking-api) in Python.
## Installation
`sh $ pip install fiobank `
## Usage
First, [get your API token](https://www.fio.cz/ib2/wicket/page/NastaveniPage?3). Initialization of the client:
`python >>> from fiobank import FioBank >>> client = FioBank(token='...') `
Account information:
`python >>> client.info() {'currency': 'CZK', 'account_number_full': 'XXXXXXXXXX/2010', 'balance': 42.00, 'account_number': 'XXXXXXXXXX', 'bank_code': '2010'} `
Listing transactions within a time period:
`python >>> gen = client.period('2013-01-20', '2013-03-20') >>> list(gen)[0] {'comment': u'N\xe1kup: IKEA CR, BRNO, CZ, dne 17.1.2013, \u010d\xe1stka 2769.00 CZK', 'recipient_message': u'N\xe1kup: IKEA CR, BRNO, CZ, dne 17.1.2013, \u010d\xe1stka 2769.00 CZK', 'user_identifiaction': u'N\xe1kup: IKEA CR, BRNO, CZ, dne 17.1.2013, \u010d\xe1stka 2769.00 CZK', 'currency': 'CZK', 'amount': -2769.0, 'instruction_id': 'XXXXXXXXXX', 'executor': u'Vilém Fusek', 'date': datetime.date(2013, 1, 20), 'type': u'Platba kartou', 'transaction_id': 'XXXXXXXXXX'} `
Listing transactions from a single account statement:
`python >>> client.statement(2013, 1) # 1 is January only by coincidence - arguments mean 'first statement of 2013' `
Listing latest transactions:
`python >>> client.last() # return transactions added from last listing >>> client.last(from_id='...') # sets cursor to given transaction_id and returns following transactions >>> client.last(from_date='2013-03-01') # sets cursor to given date and returns following transactions `
For further information [read code](https://github.com/honzajavorek/fiobank/blob/master/fiobank.py).
## License: ISC
© 2013-? Honza Javorek <mail@honzajavorek.cz>
This work is licensed under [ISC license](https://en.wikipedia.org/wiki/ISC_license).
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
Built Distribution
Hashes for fiobank-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4af2f08296972d0d14ef72623b493a272532034bd30165886a07058b041bad3 |
|
MD5 | 931514305c0de9dcc1cddd6db6851e64 |
|
BLAKE2b-256 | c5426aba85ee46494e7eb8cc6f5b0babf706cae6fd7decd2531d1d6baa353050 |