Skip to main content

A module to parse CODA files

Project description

febelfin-coda is a parser for CODA files.

Nutshell

Import:

>>> import os
>>> from coda import CODA

Instantiate:

>>> coda = CODA('coda/CODA.txt')

The statements:

>>> len(coda.statements)
1
>>> statement, = coda.statements
>>> statement.account
'435000000080'
>>> statement.account_currency
'EUR'
>>> statement.old_balance
Decimal('0')
>>> statement.old_balance_date
datetime.date(2006, 12, 6)
>>> statement.new_balance
Decimal('9405296.99')
>>> statement.new_balance_date
datetime.date(2006, 12, 7)

The transactions:

>>> len(statement.moves)
59
>>> move = statement.moves[0]
>>> move.value_date
datetime.date(2006, 12, 6)
>>> move.entry_date
datetime.date(2006, 12, 6)
>>> move.amount
Decimal('-2578.25')
>>> move.bank_reference
'EPIB00048 AWIUBTKAPUO'
>>> move.transaction_code
'00799000'
>>> move.communication
"BORDEREAU DE DECOMPTE AVANCES    015 NUMERO D'OPERATION 495953"

To report issues please visit the coda bugtracker.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

febelfin-coda-0.3.0.tar.gz (17.2 kB view hashes)

Uploaded Source

Built Distribution

febelfin_coda-0.3.0-py3-none-any.whl (62.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page