skip to navigation
skip to content

python-esr 0.2

Swiss ESR account statement record parser

Parser library for Swiss ESR (“Einzahlungsschein mit Referenznummer”) account statement records.

Features

  • Support for type 3 and 4 records (automatically detected)
  • Implements various integrity checks according to record description manual
  • Converts values to int, Decimal, etc.

Getting started

Read data from a ESR file (usually ending with *.v11):

from esr import ESR

with open('esr_file.v11', 'r') as f:
    data = f.read()

statement = ESR.parse(data)

for record in statement.records:
    print(record.amount)
print(statement.total_record.amount)
 
File Type Py Version Uploaded on Size
python-esr-0.2.tar.gz (md5) Source 2014-08-13 17KB