Note
license: GNU Lesser General Public License v3.0 (see LICENSE)
Homebank CSV format
Convert a CSB43 file into a HomeBank CSV file
Parameters: | csb (csb43.csb43.File) – a CSB43 file |
---|---|
Return type: | list of Transaction |
>>> # Homebank
>>> from csb43 import csb_43, homebank
>>> #
>>> csbFile = csb_43.File(open("movimientos.csb"), strict=False)
>>> #
>>> # print to stdout
>>> for line in homebank.convertFromCsb(csbFile):
... print line
...
Hombebank CSV transaction
Creating a record:
>>> from csb43.homebank import Transaction
>>> t = Transaction()
>>> t.amount = 12.45
>>> from datetime import datetime
>>> t.date = datetime.now()
>>> print t
19-03-13;;;;;12.45;
Parsing a record:
>>> t = Transaction("19-03-13;;;;;12.45;")
>>> t.amount
12.45
>>> t.date
datetime.datetime(2013, 3, 19, 0, 0)
Parameters: | record (str) – a Hombeank csv record |
---|---|
Raises: | csb43.utils.Csb43Exception |
Return type: | str representation of this record as a row of a Homebank CSV file |
---|
list of weak references to the object (if defined)
amount of the transaction
transaction category, according to HomeBank
date of transaction (datetime.datetime)
description of the transaction
transaction’s info
mode of transaction
payee of the transaction