File: PKG-INFO

package info (click to toggle)
python-febelfin-coda 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 212 kB
  • sloc: python: 680; sh: 9; makefile: 3
file content (88 lines) | stat: -rw-r--r-- 2,425 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Metadata-Version: 2.1
Name: febelfin-coda
Version: 0.3.0
Summary: A module to parse CODA files
Home-page: https://pypi.org/project/febelfin-coda/
Download-URL: https://downloads.tryton.org/coda/
Author: Tryton
Author-email: foundation@tryton.org
License: BSD
Project-URL: Bug Tracker, https://bugs.tryton.org/coda
Project-URL: Forum, https://discuss.tryton.org/tags/coda
Project-URL: Source Code, https://code.tryton.org/coda
Keywords: CODA parser
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Office/Business
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires-Python: >=3.5

febelfin-coda
=============

febelfin-coda is a parser for `CODA files`_.

.. _CODA files: http://downloads.tryton.org/standards/coda-2.6.pdf

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`_.

.. _coda bugtracker: https://bugs.tryton.org/coda