Warning, /office/kmymoney/contrib/acst2qif.cfg is written in an unsupported language. File is not indexed.
0001 #*************************************************************************** 0002 # .acst2qif.cfg - description 0003 # ------------------- 0004 # copyright status : configuration file only, Public Domain 0005 # email : volker.paul@v-paul.de 0006 # 0007 #***************************************************************************/ 0008 0009 # Configuration file for acst2qif.py 0010 # Location: default ~/.acst2qif.cfg; 0011 # specify a different location with -c/--configfile option 0012 0013 # Adapt this to your situation according to the comments below. 0014 0015 # In [General], list accounts and a default outfile. 0016 # Prepare each account type, especially regular expressions. 0017 # Prepare each single account, e.g. dir where balances are kept, categoryDic etc. 0018 0019 [General] 0020 # List of accounts to process automatically 0021 # (sections in this file, may be slightly different from account name). 0022 # Idea: Put data from several accounts into one .qif file and import only this one file. 0023 # Unless you specify an input file list with the -i/--input option, 0024 # input files are automatically specified as follows: 0025 # Loop over this accounts list 0026 # for each account, lookup its directory (dir entry) 0027 # from this directory, sort files alphabetically and take the last one 0028 # If the alphabetical corresponds to the temporal order 0029 # (e.g. use ISO date format 2010-12-31 or 2010q4 for 4th quarter of 2010), 0030 # then this always gives the latest file of that directory. 0031 accounts: Fritz_MyBank_Giro 0032 0033 # Default path to .qif file to import into KMyMoney. 0034 # You can specify a different path with the -o/--output option. 0035 outfile: /home/fritz/data/admin/banking/account_statements.qif 0036 0037 0038 # Account types ======================================================= 0039 # These are settings for all accounts of this type. 0040 # The Value of the "type" setting in an account section refers to this. 0041 0042 [MyBank] 0043 # Regexp for detecting item head, with transaction date (parts: day, month, year), detail text, amount. 0044 # The head is often the single line of an entry. 0045 ihead_regexp: ^ (?P<day>\d\d)\.(?P<month>\d\d)\. +\d\d\.\d\d\. +(?P<detail>.{60}) +(?P<amount>.*)$ 0046 # Regexp for detecting additional item text (2nd and following lines of a transaction), after the head line. 0047 iadd_regexp: ^ {20} *(?P<detail>\S.*)$ 0048 # Regexp to match an amount (from head line) if it's a creadit amount (positive). 0049 credit_regexp: ^ {20} *(?P<int>[\d\.]+),(?P<frac>\d\d).*$ 0050 # Regexp for debit amount (negative); may be the same as for credit amount. 0051 debit_regexp: ^ *(?P<int>[\d\.]+),(?P<frac>\d\d).*$ 0052 # Mapping from transaction text to account/category name in KMyMoney. 0053 # Realised as a Python dictionary. 0054 # Key: regexp to match transaction text 0055 # Value: other account/category name 0056 # Account names (in contrast to categories) may have to be enclosed in [] 0057 # Statements can come in different formats depending on 0058 # whether it's a regular monthly/quarterly statement or a 0059 # statement generated on demand and printed to PDF file. 0060 # Ideally the converter understands both. 0061 # Depending on the bank, years can be 2 or 4 digits long. Empty space length varies. 0062 # After the amount, a running balance can follow or not 0063 # (if it does, it is ignored, as it cannot be imported). 0064 # Unfortunately, sometimes debit and credit look identical but are placed in different columns, 0065 # so they can only be distinguished by counting spaces. 0066 categoryDic: { 0067 "Abschluss":"Zinsen", 0068 } 0069 0070 # Accounts ================================================================ 0071 0072 [Fritz_MyBank_Giro] 0073 # Contains settings specific to this account. 0074 # Values shared by all accounts of the same type (bank) go in the type section. 0075 name: Fritz:MyBank Giro 0076 qif_account_type: otha 0077 # Type must be a section defined above. 0078 type: MyBank 0079 # Default directory for PDF account statements of this account. 0080 dir: /home/fritz/data/admin/banking/Fritz/MyBank/statements 0081 # Some categoryDic entries come from the individual account, some from the account type. 0082 categoryDic: { 0083 ".*AB-PA ?472":"Auto:KFZ-Steuer", 0084 ".*DEUTSCHE TELEKOM AG":"Kommunikation:Telefon", 0085 "Abrechnung .* siehe Anlage":"Zinsen", 0086 "Lastschrift ELASTROM":"Nebenkosten:Strom", 0087 }