File: PKG-INFO

package info (click to toggle)
python-mt940 0.6.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224 kB
  • sloc: python: 474; sh: 11; makefile: 6
file content (87 lines) | stat: -rw-r--r-- 2,772 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
Metadata-Version: 1.2
Name: mt940
Version: 0.6.0
Summary: A module to parse MT940 files
Home-page: http://mt940.b2ck.com/
Author: B2CK
Author-email: info@b2ck.com
License: BSD
Description: mt940
        =====
        
        mt940 is a parser for MT940 files.
        
        Nutshell
        --------
        
        Import::
        
            >>> import os
            >>> from mt940 import MT940
        
        Instanciate::
        
            >>> mt940 = MT940('mt940/MT940.txt')
        
        The statements::
        
            >>> len(mt940.statements)
            2
            >>> statement = mt940.statements[0]
            >>> statement.account
            '123456789'
            >>> statement.information
            '13501/1'
            >>> start_balance = statement.start_balance
            >>> start_balance.date
            datetime.date(2012, 5, 11)
            >>> start_balance.amount
            Decimal('5138.61')
            >>> start_balance.currency
            'EUR'
            >>> end_balance = statement.end_balance
            >>> end_balance.date
            datetime.date(2012, 5, 14)
            >>> end_balance.amount
            Decimal('5638.62')
            >>> end_balance.currency
            'EUR'
        
        The transactions::
        
            >>> len(statement.transactions)
            3
            >>> transaction, _, _ = statement.transactions
            >>> transaction.date
            datetime.date(2012, 5, 12)
            >>> transaction.booking
            datetime.date(2012, 5, 14)
            >>> transaction.amount
            Decimal('500.01')
            >>> transaction.id
            'N654'
            >>> transaction.reference
            'NONREF'
            >>> transaction.additional_data
            '987654321'
            >>> transaction.description # doctest: +NORMALIZE_WHITESPACE
            '/TRTP/SEPA OVERBOEKING/IBAN/FR12345678901234/BIC/GEFRADAM\n/NAME/QASD JGRED/REMI/Dit zijn de omschrijvingsregels/EREF/NOTPRO\nVIDED'
        
        To report issues please visit the `mt940 bugtracker`_.
        
        .. _mt940 bugtracker: http://mt940.b2ck.com/
        
Platform: UNKNOWN
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: Topic :: Office/Business
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires-Python: >=3.5