# Configuration file for acst2qif.py # Location: default ~/.acst2qif.cfg; # specify a different location with -c/--configfile option # Adapt this to your situation according to the comments below. # In [General], list accounts and a default outfile. # Prepare each account type, especially regular expressions. # Prepare each single account, e.g. dir where balances are kept, categoryDic etc. [General] # List of accounts to process automatically # (sections in this file, maybe slightly different from account name). # Idea: Put data from several accounts into one .qif file and import only this one file. # Unless you specify an input file list with the -i/--input option, # input files are automatically specified as follows: # Loop over this accounts list # for each account, lookup its directory (dir entry) # from this directory, sort files alphabetically and take the last one # If the alphabetical corresponds to the temporal order # (e.g. use ISO date format 2010-12-31 or 2010q4 for 4th quarter of 2010), # then this always gives the latest file of that directory. accounts: Fritz_MyBank_Giro # Default path to .qif file to import into KMyMoney. # You can specify a different path with the -o/--output option. outfile: /home/fritz/data/admin/banking/account_statements.qif # Account types ======================================================= # These are settings for all accounts of this type. # The Value of the "type" setting in an account section refers to this. [MyBank] ihead_regexp: ^ (?P\d\d)\.(?P\d\d)\. +\d\d\.\d\d\. +(?P.{60}) +(?P.*)$ iadd_regexp: ^ {20} *(?P\S.*)$ credit_regexp: ^ {20} *(?P[\d\.]+),(?P\d\d).*$ debit_regexp: ^ *(?P[\d\.]+),(?P\d\d).*$ categoryDic: { "Abschluss":"Zinsen", } # Accounts ================================================================ [Fritz_MyBank_Giro] name: Fritz:MyBank Giro qif_account_type: otha type: MyBank dir: /home/fritz/data/admin/banking/Fritz/MyBank/statements categoryDic: { ".*AB-PA ?472":"Auto, Benzin:KFZ-Steuer", ".*DEUTSCHE TELEKOM AG":"Kommunikation:Telefon", "Abrechnung .* siehe Anlage":"Zinsen", "Lastschrift ELASTROM":"Nebenkosten:Strom", }