forked from by-cx/python-mbank
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
36 lines (25 loc) · 1.04 KB
/
README
File metadata and controls
36 lines (25 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
python-mbank - mBank Python parser
===================================
mBank parser for Python.
Features
--------
* List of accounts
* List of transactions
Usage
-----
import time
from mbank.mbank import mBank
from datetime import date
date_from=date(2011,1,1)
date_to=date(2013,11,30)
mbank = mBank("customer id", "password")
mbank.login()
result = mbank.get_transactions("full account number", date_from, date_to)
accounts = mbank.get_accounts()
Content of result variable:
[
<.....>
{'ss': 0, 'balance': 5961.0500000000002, 'ks': 0, 'vs': 20120040, 'date_realization': datetime.date(2012, 6, 20), 'date_accounting': datetime.date(2012, 6, 20), 'type': 'incoming', 'amount': 123, 'account': '000012-3456789101/1213'},
{'ss': 0, 'balance': 3961.0500000000002, 'ks': 7618, 'vs': 70577193, 'date_realization': datetime.date(2012, 6, 20), 'date_accounting': datetime.date(2012, 6, 20), 'type': 'outcoming','amount':-2000, 'account': '000012-3456789101/1213'},
<.....>
]