pybankreader.formats.gpc package¶
pybankreader.formats.gpc.records module¶
-
class
pybankreader.formats.gpc.records.AccountRecord(initial=None)[source]¶ Bases:
pybankreader.records.RecordThe top-level record indicating an account. Usually, there will be only one in the file
-
BALANCE_SIGNUM= {'+': 1, '-': -1}¶
-
REVENUE_SIGNUM= {'0': 1, '-': -1}¶
-
account_no= None¶
-
clearance_date= None¶
-
fill= None¶
-
header= None¶
-
name= None¶
-
new_balance= None¶
-
new_balance_signum= None¶
-
old_balance= None¶
-
old_balance_date= None¶
-
old_balance_signum= None¶
-
revenue_credit= None¶
-
revenue_credit_signum= None¶
-
revenue_debit= None¶
-
revenue_debit_signum= None¶
-
seq_no= None¶
-
-
class
pybankreader.formats.gpc.records.ItemInfoRecord(initial=None)[source]¶ Bases:
pybankreader.records.RecordAn optional informational record for the money transfer
-
comment= None¶
-
date= None¶
-
header= None¶
-
transaction_id= None¶
-
-
class
pybankreader.formats.gpc.records.ItemRecord(initial=None)[source]¶ Bases:
pybankreader.records.RecordThe item record represents the change of sum of money (i.e. money order) and associated information
-
CURRENCY_CODES= {'0949': 'TRY', '0616': 'PLN', '0124': 'CAD', '0392': 'JPY', '0348': 'HUF', '0826': 'GBP', '0030': 'AUD', '0710': 'ZAR', '0810': 'RUR', '0840': 'USD', '0703': 'SKK', '0756': 'CHF', '0578': 'NOK', '0203': 'CZK', '0752': 'SEK', '0978': 'EUR', '0554': 'NZD', '0191': 'HRK', '0208': 'DKK'}¶
-
account_no= None¶
-
account_no_second= None¶
-
accounting_code= None¶
-
amount= None¶
-
clearance_date= None¶
-
constant_symbol= None¶
-
currency_iso_code= None¶
-
file_id= None¶
-
file_seq_no= None¶
-
header= None¶
-
name= None¶
-
record_type= None¶
-
separator= None¶
-
seq_no= None¶
-
specific_symbol= None¶
-
valuta= None¶
-
variable_symbol= None¶
-
pybankreader.formats.gpc.reports module¶
-
class
pybankreader.formats.gpc.reports.Account(record)[source]¶ Bases:
pybankreader.utils.ProxyMixinAn Account wraps the AccountRecord using the proxy and prepares an empty list of items to be appended
-
items= None¶
-
-
class
pybankreader.formats.gpc.reports.AccountItem(record)[source]¶ Bases:
pybankreader.utils.ProxyMixinAn AccountItem groups together all dependant records, and proxies to the main ItemRecord itself.
-
info= None¶
-
rem1= None¶
-
rem2= None¶
-
-
class
pybankreader.formats.gpc.reports.AccountReport(file_like=None)[source]¶ Bases:
pybankreader.reports.Report-
data= None¶
-
hint_data(line)¶ Default hint method always returning True
Return bool: Always True
-
process_data(record)[source]¶ Handles the processing of the data field, when in this case all records are stored. Basically, we wrap the linear into a hierarchical structure for easier use later-on.
Parameters: record (Record) – The record to process Return Account: Either a new Account instance, or nothing at all, if the processing is happening internally
-