csv2ofx 0.31.0__tar.gz → 0.32.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. {csv2ofx-0.31.0/csv2ofx.egg-info → csv2ofx-0.32.0}/PKG-INFO +6 -33
  2. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/csv2ofx/__init__.py +1 -1
  3. {csv2ofx-0.31.0 → csv2ofx-0.32.0/csv2ofx.egg-info}/PKG-INFO +6 -33
  4. csv2ofx-0.32.0/csv2ofx.egg-info/SOURCES.txt +35 -0
  5. csv2ofx-0.32.0/csv2ofx.egg-info/entry_points.txt +2 -0
  6. csv2ofx-0.32.0/dev-requirements.txt +3 -0
  7. csv2ofx-0.32.0/pyproject.toml +39 -0
  8. csv2ofx-0.32.0/setup.cfg +4 -0
  9. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/tests/test.py +5 -0
  10. csv2ofx-0.31.0/bin/csv2ofx +0 -16
  11. csv2ofx-0.31.0/csv2ofx/mappings/__init__.py +0 -6
  12. csv2ofx-0.31.0/csv2ofx/mappings/abnamro.py +0 -12
  13. csv2ofx-0.31.0/csv2ofx/mappings/amazon.py +0 -61
  14. csv2ofx-0.31.0/csv2ofx/mappings/boursorama.py +0 -18
  15. csv2ofx-0.31.0/csv2ofx/mappings/capitalone.py +0 -15
  16. csv2ofx-0.31.0/csv2ofx/mappings/creditunion.py +0 -14
  17. csv2ofx-0.31.0/csv2ofx/mappings/custom.py +0 -21
  18. csv2ofx-0.31.0/csv2ofx/mappings/default.py +0 -17
  19. csv2ofx-0.31.0/csv2ofx/mappings/eqbank.py +0 -14
  20. csv2ofx-0.31.0/csv2ofx/mappings/exim.py +0 -13
  21. csv2ofx-0.31.0/csv2ofx/mappings/gls.py +0 -25
  22. csv2ofx-0.31.0/csv2ofx/mappings/ingdirect.py +0 -20
  23. csv2ofx-0.31.0/csv2ofx/mappings/ingesp.py +0 -70
  24. csv2ofx-0.31.0/csv2ofx/mappings/mdb.py +0 -22
  25. csv2ofx-0.31.0/csv2ofx/mappings/mint.py +0 -23
  26. csv2ofx-0.31.0/csv2ofx/mappings/mint_extra.py +0 -28
  27. csv2ofx-0.31.0/csv2ofx/mappings/mint_headerless.py +0 -22
  28. csv2ofx-0.31.0/csv2ofx/mappings/mintapi.py +0 -30
  29. csv2ofx-0.31.0/csv2ofx/mappings/msmoneyreport.py +0 -16
  30. csv2ofx-0.31.0/csv2ofx/mappings/n26.py +0 -34
  31. csv2ofx-0.31.0/csv2ofx/mappings/outbank.py +0 -23
  32. csv2ofx-0.31.0/csv2ofx/mappings/pcmastercard.py +0 -15
  33. csv2ofx-0.31.0/csv2ofx/mappings/rabobank.py +0 -31
  34. csv2ofx-0.31.0/csv2ofx/mappings/schwabchecking.py +0 -67
  35. csv2ofx-0.31.0/csv2ofx/mappings/split_account.py +0 -18
  36. csv2ofx-0.31.0/csv2ofx/mappings/starling.py +0 -16
  37. csv2ofx-0.31.0/csv2ofx/mappings/stripe.py +0 -31
  38. csv2ofx-0.31.0/csv2ofx/mappings/ubs-ch-fr.py +0 -77
  39. csv2ofx-0.31.0/csv2ofx/mappings/ubs.py +0 -16
  40. csv2ofx-0.31.0/csv2ofx/mappings/xero.py +0 -14
  41. csv2ofx-0.31.0/csv2ofx/mappings/yodlee.py +0 -23
  42. csv2ofx-0.31.0/csv2ofx.egg-info/SOURCES.txt +0 -69
  43. csv2ofx-0.31.0/csv2ofx.egg-info/not-zip-safe +0 -1
  44. csv2ofx-0.31.0/dev-requirements.txt +0 -10
  45. csv2ofx-0.31.0/pyproject.toml +0 -3
  46. csv2ofx-0.31.0/setup.cfg +0 -35
  47. csv2ofx-0.31.0/setup.py +0 -77
  48. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/LICENSE +0 -0
  49. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/MANIFEST.in +0 -0
  50. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/README.md +0 -0
  51. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/csv2ofx/main.py +0 -0
  52. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/csv2ofx/ofx.py +0 -0
  53. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/csv2ofx/qif.py +0 -0
  54. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/csv2ofx/utils.py +0 -0
  55. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/csv2ofx.egg-info/dependency_links.txt +0 -0
  56. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/csv2ofx.egg-info/requires.txt +1 -1
  57. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/csv2ofx.egg-info/top_level.txt +0 -0
  58. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/OFX 2.1.1.pdf +0 -0
  59. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/OFXAudit.xls +0 -0
  60. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/OFX_Message_Support.doc +0 -0
  61. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/QIF Specification.html +0 -0
  62. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/QIF Specification_files/a.html +0 -0
  63. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/QIF Specification_files/a_002.html +0 -0
  64. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/QIF Specification_files/a_003.html +0 -0
  65. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/QIF Specification_files/a_004.html +0 -0
  66. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/QIF Specification_files/a_005.html +0 -0
  67. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/QIF Specification_files/bootstrap.js +0 -0
  68. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/QIF Specification_files/jquery.js +0 -0
  69. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/QIF Specification_files/sitecss.css +0 -0
  70. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/docs/qif-file-format.txt +0 -0
  71. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/helpers/check-stage +0 -0
  72. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/helpers/clean +0 -0
  73. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/helpers/srcdist +0 -0
  74. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/helpers/wheel +0 -0
  75. {csv2ofx-0.31.0 → csv2ofx-0.32.0}/requirements.txt +0 -0
@@ -1,51 +1,24 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: csv2ofx
3
- Version: 0.31.0
3
+ Version: 0.32.0
4
4
  Summary: converts a csv file of transactions to an ofx or qif file
5
- Home-page: https://github.com/reubano/csv2ofx
6
- Download-URL: https://github.com/reubano/csv2ofx/archive/v0.31.0.tar.gz
7
- Author: Reuben Cummings
8
- Author-email: reubano@gmail.com
9
- Maintainer: Jason R. Coombs
10
- Maintainer-email: jaraco@jaraco.com
11
- License: MIT
12
- Keywords: csv2ofx,converts,a,csv,file,of,transactions,to,an,ofx,or,qif,file
13
- Platform: MacOS X
14
- Platform: Windows
15
- Platform: Linux
16
- Classifier: License :: OSI Approved :: MIT License
17
- Classifier: Development Status :: 4 - Beta
5
+ Author-email: Reuben Cummings <reubano@gmail.com>
6
+ Maintainer-email: "Jason R. Coombs" <jaraco@jaraco.com>
7
+ Project-URL: Source, https://github.com/reubano/csv2ofx
8
+ Classifier: Development Status :: 5 - Production/Stable
18
9
  Classifier: Natural Language :: English
19
10
  Classifier: Programming Language :: Python :: 3
20
11
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.7
22
- Classifier: Programming Language :: Python :: 3.8
23
- Classifier: Programming Language :: Python :: 3.9
24
12
  Classifier: Programming Language :: Python :: Implementation :: CPython
25
13
  Classifier: Programming Language :: Python :: Implementation :: PyPy
26
14
  Classifier: Environment :: Console
27
15
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
16
  Classifier: Intended Audience :: Developers
29
- Classifier: Operating System :: POSIX :: Linux
30
- Classifier: Operating System :: MacOS :: MacOS X
31
- Classifier: Operating System :: Microsoft :: Windows
32
17
  Description-Content-Type: text/markdown
33
18
  License-File: LICENSE
34
- Requires-Dist: meza<0.48.0,>=0.47.0
35
19
  Requires-Dist: python-dateutil<3.0.0,>=2.7.2
36
20
  Requires-Dist: requests<3.0.0,>=2.18.4
37
- Dynamic: author
38
- Dynamic: author-email
39
- Dynamic: classifier
40
- Dynamic: description
41
- Dynamic: description-content-type
42
- Dynamic: download-url
43
- Dynamic: home-page
44
- Dynamic: keywords
45
- Dynamic: license
46
- Dynamic: platform
47
- Dynamic: requires-dist
48
- Dynamic: summary
21
+ Requires-Dist: meza<0.48.0,>=0.47.0
49
22
 
50
23
  # csv2ofx
51
24
 
@@ -37,7 +37,7 @@ __package_name__ = "csv2ofx"
37
37
  __author__ = "Reuben Cummings"
38
38
  __description__ = "converts a csv file of transactions to an ofx or qif file"
39
39
  __email__ = "reubano@gmail.com"
40
- __version__ = "0.31.0"
40
+ __version__ = "0.32.0"
41
41
  __license__ = "MIT"
42
42
  __copyright__ = "Copyright 2015 Reuben Cummings"
43
43
 
@@ -1,51 +1,24 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: csv2ofx
3
- Version: 0.31.0
3
+ Version: 0.32.0
4
4
  Summary: converts a csv file of transactions to an ofx or qif file
5
- Home-page: https://github.com/reubano/csv2ofx
6
- Download-URL: https://github.com/reubano/csv2ofx/archive/v0.31.0.tar.gz
7
- Author: Reuben Cummings
8
- Author-email: reubano@gmail.com
9
- Maintainer: Jason R. Coombs
10
- Maintainer-email: jaraco@jaraco.com
11
- License: MIT
12
- Keywords: csv2ofx,converts,a,csv,file,of,transactions,to,an,ofx,or,qif,file
13
- Platform: MacOS X
14
- Platform: Windows
15
- Platform: Linux
16
- Classifier: License :: OSI Approved :: MIT License
17
- Classifier: Development Status :: 4 - Beta
5
+ Author-email: Reuben Cummings <reubano@gmail.com>
6
+ Maintainer-email: "Jason R. Coombs" <jaraco@jaraco.com>
7
+ Project-URL: Source, https://github.com/reubano/csv2ofx
8
+ Classifier: Development Status :: 5 - Production/Stable
18
9
  Classifier: Natural Language :: English
19
10
  Classifier: Programming Language :: Python :: 3
20
11
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.7
22
- Classifier: Programming Language :: Python :: 3.8
23
- Classifier: Programming Language :: Python :: 3.9
24
12
  Classifier: Programming Language :: Python :: Implementation :: CPython
25
13
  Classifier: Programming Language :: Python :: Implementation :: PyPy
26
14
  Classifier: Environment :: Console
27
15
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
16
  Classifier: Intended Audience :: Developers
29
- Classifier: Operating System :: POSIX :: Linux
30
- Classifier: Operating System :: MacOS :: MacOS X
31
- Classifier: Operating System :: Microsoft :: Windows
32
17
  Description-Content-Type: text/markdown
33
18
  License-File: LICENSE
34
- Requires-Dist: meza<0.48.0,>=0.47.0
35
19
  Requires-Dist: python-dateutil<3.0.0,>=2.7.2
36
20
  Requires-Dist: requests<3.0.0,>=2.18.4
37
- Dynamic: author
38
- Dynamic: author-email
39
- Dynamic: classifier
40
- Dynamic: description
41
- Dynamic: description-content-type
42
- Dynamic: download-url
43
- Dynamic: home-page
44
- Dynamic: keywords
45
- Dynamic: license
46
- Dynamic: platform
47
- Dynamic: requires-dist
48
- Dynamic: summary
21
+ Requires-Dist: meza<0.48.0,>=0.47.0
49
22
 
50
23
  # csv2ofx
51
24
 
@@ -0,0 +1,35 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ dev-requirements.txt
5
+ pyproject.toml
6
+ requirements.txt
7
+ csv2ofx/__init__.py
8
+ csv2ofx/main.py
9
+ csv2ofx/ofx.py
10
+ csv2ofx/qif.py
11
+ csv2ofx/utils.py
12
+ csv2ofx.egg-info/PKG-INFO
13
+ csv2ofx.egg-info/SOURCES.txt
14
+ csv2ofx.egg-info/dependency_links.txt
15
+ csv2ofx.egg-info/entry_points.txt
16
+ csv2ofx.egg-info/requires.txt
17
+ csv2ofx.egg-info/top_level.txt
18
+ docs/OFX 2.1.1.pdf
19
+ docs/OFXAudit.xls
20
+ docs/OFX_Message_Support.doc
21
+ docs/QIF Specification.html
22
+ docs/qif-file-format.txt
23
+ docs/QIF Specification_files/a.html
24
+ docs/QIF Specification_files/a_002.html
25
+ docs/QIF Specification_files/a_003.html
26
+ docs/QIF Specification_files/a_004.html
27
+ docs/QIF Specification_files/a_005.html
28
+ docs/QIF Specification_files/bootstrap.js
29
+ docs/QIF Specification_files/jquery.js
30
+ docs/QIF Specification_files/sitecss.css
31
+ helpers/check-stage
32
+ helpers/clean
33
+ helpers/srcdist
34
+ helpers/wheel
35
+ tests/test.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ csv2ofx = csv2ofx.main:run
@@ -0,0 +1,3 @@
1
+ pygogo>=0.13.2,<2.0.0
2
+ scripttest>=1.3,<2.0
3
+ pytest
@@ -0,0 +1,39 @@
1
+ [build-system]
2
+ requires = ["setuptools>=42.0.2"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "csv2ofx"
7
+ description = "converts a csv file of transactions to an ofx or qif file"
8
+ readme = "README.md"
9
+ authors = [
10
+ { name = "Reuben Cummings", email = "reubano@gmail.com" }
11
+ ]
12
+ maintainers = [
13
+ { name = "Jason R. Coombs", email = "jaraco@jaraco.com" }
14
+ ]
15
+ classifiers = [
16
+ "Development Status :: 5 - Production/Stable",
17
+ "Natural Language :: English",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3 :: Only",
20
+ "Programming Language :: Python :: Implementation :: CPython",
21
+ "Programming Language :: Python :: Implementation :: PyPy",
22
+ "Environment :: Console",
23
+ "Topic :: Software Development :: Libraries :: Python Modules",
24
+ "Intended Audience :: Developers",
25
+ ]
26
+ dynamic = ["version", "dependencies"]
27
+
28
+ [project.urls]
29
+ Source = "https://github.com/reubano/csv2ofx"
30
+
31
+ [project.scripts]
32
+ csv2ofx = "csv2ofx.main:run"
33
+
34
+ [tool.setuptools.dynamic]
35
+ version = {attr = "csv2ofx.__version__"}
36
+ dependencies = {file = "requirements.txt"}
37
+
38
+ [tool.setuptools]
39
+ packages = ["csv2ofx"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -204,6 +204,11 @@ if __name__ == "__main__":
204
204
  "schwab-checking-baltest-case7.ofx",
205
205
  ),
206
206
  (["-o", "-m amazon", "-e 20230604", SERVER_DATE], "amazon.csv", "amazon.ofx",),
207
+ (
208
+ ["-o", "-m payoneer", "-e 20220905", SERVER_DATE],
209
+ "payoneer.csv",
210
+ "payoneer.ofx",
211
+ ),
207
212
  ]
208
213
 
209
214
  # for Amazon import; excludes transaction 3/3
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
- # vim: sw=4:ts=4:expandtab
4
-
5
- """ Converts a csv file to ofx and qif """
6
-
7
- from os import path as p
8
- import sys
9
-
10
- if __name__ == '__main__':
11
- # prepend path
12
- path = p.abspath(p.dirname(p.dirname(__file__)))
13
- sys.path[0:0] = [path]
14
-
15
- from csv2ofx.main import run
16
- run()
@@ -1,6 +0,0 @@
1
- """
2
- csv2ofx.mappings
3
- ~~~~~~~~~~~~~~~~
4
-
5
- Bank Mappers
6
- """
@@ -1,12 +0,0 @@
1
- from operator import itemgetter
2
-
3
- mapping = {
4
- "has_header": False,
5
- "delimiter": "\t",
6
- "bank": "ABN Amro",
7
- "currency": itemgetter("field_1"),
8
- "account": itemgetter("field_0"),
9
- "date": itemgetter("field_2"),
10
- "amount": itemgetter("field_6"),
11
- "payee": itemgetter("field_7"),
12
- }
@@ -1,61 +0,0 @@
1
- """
2
- Import transactions from Amazon Order History
3
- as exported by Amazon Order History Reporter
4
- (https://chrome.google.com/webstore/detail/amazon-order-history-repo/mgkilgclilajckgnedgjgnfdokkgnibi).
5
-
6
- Honors some environment variables:
7
-
8
- - ``AMAZON_INCLUDE_CARDS``: comma-separated last-four digits
9
- of cards or payment methods to include in the output. If not
10
- supplied, defaults to all cards.
11
- - ``AMAZON_EXCLUDE_CARDS``: comma-separated last-four digits
12
- of cards or payment methods to exclude in the output (supersedes
13
- include).
14
- - ``AMAZON_PURCHASES_ACCOUNT``: The OFX "account id" to use.
15
- Financial tools will use this account ID to associated with an
16
- account. If unspecified, defaults to "100000001".
17
- """
18
-
19
- import os
20
- import functools
21
- from operator import itemgetter
22
-
23
-
24
- All = ['']
25
- """
26
- A special value matching all cards.
27
- """
28
-
29
-
30
- @functools.lru_cache()
31
- def exclude_cards():
32
- setting = os.environ.get('AMAZON_EXCLUDE_CARDS', None)
33
- return setting.split(',') if setting else []
34
-
35
-
36
- @functools.lru_cache()
37
- def include_cards():
38
- setting = os.environ.get('AMAZON_INCLUDE_CARDS', None)
39
- return setting.split(',') if setting else All
40
-
41
-
42
- def filter_payment(row):
43
- include = any(card in row['payments'] for card in include_cards())
44
- exclude = any(card in row['payments'] for card in exclude_cards())
45
- return include and not exclude
46
-
47
-
48
- mapping = {
49
- 'has_header': True,
50
- 'delimiter': ',',
51
- 'bank': 'Amazon Purchases',
52
- 'account_id': os.environ.get('AMAZON_PURCHASES_ACCOUNT', '100000001'),
53
- 'date': itemgetter('date'),
54
- 'amount': itemgetter('total'),
55
- 'payee': 'Amazon',
56
- 'desc': itemgetter('items'),
57
- 'id': itemgetter('order id'),
58
- 'type': 'DEBIT',
59
- 'last_row': -1,
60
- 'filter': filter_payment,
61
- }
@@ -1,18 +0,0 @@
1
- from operator import itemgetter
2
-
3
-
4
- mapping = {
5
- "has_header": True,
6
- "is_split": False,
7
- "delimiter": ";",
8
- "bank": "Boursorama",
9
- "account": itemgetter("accountNum"),
10
- "account_id": itemgetter("accountNum"),
11
- "date": itemgetter("dateOp"),
12
- "type": "checking",
13
- "amount": lambda r: r["amount"].replace(" ", "").replace(",", "."),
14
- "currency": "EUR",
15
- "desc": itemgetter("label"),
16
- "date_fmt": "%Y%Y-%m%m-%d%d",
17
- "balance": itemgetter("accountbalance"),
18
- }
@@ -1,15 +0,0 @@
1
- from operator import itemgetter
2
-
3
- mapping = {
4
- "has_header": True,
5
- "is_split": False,
6
- "bank": "CapitalOne",
7
- "currency": "USD",
8
- "delimiter": ",",
9
- "account": itemgetter("Card No."),
10
- "date": itemgetter("Posted Date"),
11
- "type": lambda tr: "DEBIT" if tr.get("Debit") else "CREDIT",
12
- "amount": lambda tr: tr.get("Debit") or tr.get("Credit"),
13
- "desc": itemgetter("Description"),
14
- "payee": itemgetter("Description"),
15
- }
@@ -1,14 +0,0 @@
1
- from operator import itemgetter
2
-
3
- mapping = {
4
- "has_header": True,
5
- "is_split": False,
6
- "bank": "Credit Union",
7
- "currency": "USD",
8
- "account": "Credit Union",
9
- "date": itemgetter("Date"),
10
- "amount": itemgetter("Amount"),
11
- "payee": itemgetter("Description"),
12
- "notes": itemgetter("Comments"),
13
- "check_num": itemgetter("Check Number"),
14
- }
@@ -1,21 +0,0 @@
1
- from operator import itemgetter
2
-
3
- mapping = {
4
- "has_header": True,
5
- "is_split": False,
6
- "bank": "Bank Name",
7
- "currency": "USD",
8
- "delimiter": ",",
9
- "account": itemgetter("Field"),
10
- "account_id": itemgetter("Field"),
11
- "date": itemgetter("Field"),
12
- "type": itemgetter("Field"),
13
- "amount": itemgetter("Field"),
14
- "balance": itemgetter("Field"),
15
- "desc": itemgetter("Field"),
16
- "payee": itemgetter("Field"),
17
- "notes": itemgetter("Field"),
18
- "class": itemgetter("Field"),
19
- "id": itemgetter("Field"),
20
- "check_num": itemgetter("Field"),
21
- }
@@ -1,17 +0,0 @@
1
- from operator import itemgetter
2
-
3
- mapping = {
4
- "has_header": True,
5
- "is_split": False,
6
- "bank": "Bank",
7
- "currency": "USD",
8
- "delimiter": ",",
9
- "account": itemgetter("Account"),
10
- "date": itemgetter("Date"),
11
- "amount": itemgetter("Amount"),
12
- "desc": itemgetter("Reference"),
13
- "payee": itemgetter("Description"),
14
- "notes": itemgetter("Notes"),
15
- "check_num": itemgetter("Num"),
16
- "id": itemgetter("Row"),
17
- }
@@ -1,14 +0,0 @@
1
- from operator import itemgetter
2
-
3
- mapping = {
4
- "has_header": True,
5
- "bank": "EQ Bank",
6
- "currency": "CAD",
7
- "delimiter": ",",
8
- "account": lambda tr: "EQ",
9
- "date": itemgetter("Date"),
10
- "desc": itemgetter("Description"),
11
- "type": lambda tr: "DEBIT" if tr.get("Out") else "CREDIT",
12
- "amount": lambda tr: tr.get("In") or tr.get("Out"),
13
- "balance": itemgetter("Balance"),
14
- }
@@ -1,13 +0,0 @@
1
- from operator import itemgetter
2
-
3
- mapping = {
4
- "bank": "Exim",
5
- "has_header": True,
6
- "currency": "USD",
7
- "account": itemgetter("Account"),
8
- "date": itemgetter("Date"),
9
- "amount": itemgetter("Amount"),
10
- "payee": itemgetter("Narration"),
11
- "notes": itemgetter("Notes"),
12
- "id": itemgetter("Reference Number"),
13
- }
@@ -1,25 +0,0 @@
1
- # coding: utf-8
2
-
3
- from operator import itemgetter
4
-
5
-
6
- def date_func(trxn):
7
- tag = trxn["Buchungstag"]
8
- return "{}/{}/{}".format(tag[3:5], tag[:2], tag[-4:])
9
-
10
-
11
- mapping = {
12
- "has_header": True,
13
- "currency": "EUR",
14
- "delimiter": ";",
15
- "bank": "GLS Bank",
16
- "account": itemgetter("Kontonummer"),
17
- # Chop up the dotted German date format and put it in ridiculous M/D/Y order
18
- "date": date_func,
19
- # locale.atof does not actually know how to deal with German separators.
20
- # So we do it the crude way
21
- "amount": lambda r: r["Betrag"].replace(".", "").replace(",", "."),
22
- "desc": itemgetter("Buchungstext"),
23
- "notes": lambda r: " ".join(r["VWZ-{}".format(n)] for n in range(1, 15)),
24
- "payee": itemgetter("Auftraggeber/Empfänger"),
25
- }
@@ -1,20 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # vim: sw=4:ts=4:expandtab
3
- # pylint: disable=invalid-name
4
- """
5
- csv2ofx.mappings.ingdirect
6
- ~~~~~~~~~~~~~~~~~~~~~~~~
7
-
8
- Provides a mapping for transactions obtained via ING Direct
9
- (Australian bank)
10
- """
11
- from operator import itemgetter
12
-
13
- mapping = {
14
- "is_split": False,
15
- "has_header": True,
16
- "account": itemgetter("Account"),
17
- "date": itemgetter("Date"),
18
- "amount": lambda tr: tr["Credit"] + tr["Debit"],
19
- "desc": itemgetter("Description"),
20
- }
@@ -1,70 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # vim: sw=4:ts=4:expandtab
3
- # pylint: disable=invalid-name
4
- """
5
- csv2ofx.mappings.ingdirect
6
- ~~~~~~~~~~~~~~~~~~~~~~~~
7
-
8
- Provides a mapping for transactions obtained via ING Direct
9
- (Spanish bank)
10
- """
11
- from operator import itemgetter
12
- import json
13
- import hashlib
14
-
15
-
16
- def find_type(transaction):
17
- amount = float(transaction.get("amount"))
18
- return "credit" if amount > 0 else "debit"
19
-
20
-
21
- def gen_transaction_id(transaction):
22
- hasher = hashlib.sha256()
23
- stringified = json.dumps(transaction).encode("utf-8")
24
- hasher.update(stringified)
25
- return hasher.hexdigest()
26
-
27
-
28
- def get_payee(transaction):
29
- cadena = transaction.get('desc')
30
- subcadenas = ['Abono por campaña', 'Devolución Tarjeta',
31
- 'Nomina recibida', 'Traspaso recibido', 'Pago en',
32
- 'Recibo', 'Reintegro efectivo', 'Transferencia Bizum emitida',
33
- 'Transferencia emitida a', 'Transferencia recibida de']
34
- for subcadena in subcadenas:
35
- if subcadena in cadena:
36
- payee = cadena.replace(subcadena, '')
37
- break
38
- else:
39
- payee = cadena
40
- return payee
41
-
42
-
43
- def get_transaction_type(transaction):
44
- cadena = transaction.get('desc')
45
- subcadenas = ['Abono por campaña', 'Devolución Tarjeta',
46
- 'Nomina recibida', 'Traspaso recibido', 'Pago en',
47
- 'Recibo', 'Reintegro efectivo', 'Transferencia Bizum emitida',
48
- 'Transferencia emitida a', 'Transferencia recibida de']
49
- for subcadena in subcadenas:
50
- if subcadena in cadena:
51
- notes = subcadena
52
- return notes
53
-
54
-
55
- mapping = {
56
- "has_header": True,
57
- "is_split": False,
58
- "bank": "ING",
59
- "currency": "EUR",
60
- "delimiter": ",",
61
- "account": "ING checking",
62
- "type": find_type,
63
- "date": itemgetter("date"),
64
- "amount": itemgetter("amount"),
65
- "payee": get_payee,
66
- # 'desc': get_transaction_type,
67
- "class": itemgetter("class"),
68
- "id": gen_transaction_id,
69
- }
70
-
@@ -1,22 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # vim: sw=4:ts=4:expandtab
3
- # pylint: disable=invalid-name
4
- """
5
- csv2ofx.mappings.mdb
6
- ~~~~~~~~~~~~~~~~~~~~
7
-
8
- Provides a mapping for transactions obtained via moneydashboard.com
9
- """
10
- from operator import itemgetter
11
-
12
- mapping = {
13
- "is_split": False,
14
- "has_header": True,
15
- "currency": "GBP",
16
- "account": itemgetter("Account"),
17
- "date": itemgetter("Date"),
18
- "amount": itemgetter("Amount"),
19
- "desc": itemgetter("OriginalDescription"),
20
- "payee": itemgetter("CurrentDescription"),
21
- "class": itemgetter("Tag"),
22
- }
@@ -1,23 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # vim: sw=4:ts=4:expandtab
3
- # pylint: disable=invalid-name
4
- """
5
- csv2ofx.mappings.mintapi
6
- ~~~~~~~~~~~~~~~~~~~~~~~~
7
-
8
- Provides a mapping for transactions obtained via mint.com
9
- """
10
- from operator import itemgetter
11
-
12
- mapping = {
13
- "is_split": False,
14
- "has_header": True,
15
- "split_account": itemgetter("Category"),
16
- "account": itemgetter("Account Name"),
17
- "date": itemgetter("Date"),
18
- "type": itemgetter("Transaction Type"),
19
- "amount": itemgetter("Amount"),
20
- "desc": itemgetter("Original Description"),
21
- "payee": itemgetter("Description"),
22
- "notes": itemgetter("Notes"),
23
- }
@@ -1,28 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # vim: sw=4:ts=4:expandtab
3
- # pylint: disable=invalid-name
4
- """
5
- csv2ofx.mappings.mintapi
6
- ~~~~~~~~~~~~~~~~~~~~~~~~
7
-
8
- Provides a mapping for transactions obtained via mint.com
9
- """
10
- from operator import itemgetter
11
- from csv2ofx.utils import convert_amount
12
-
13
-
14
- mapping = {
15
- "is_split": False,
16
- "has_header": True,
17
- "split_account": itemgetter("Category"),
18
- "account": itemgetter("Account Name"),
19
- "date": itemgetter("Date"),
20
- "type": itemgetter("Transaction Type"),
21
- "amount": itemgetter("Amount"),
22
- "desc": itemgetter("Original Description"),
23
- "payee": itemgetter("Description"),
24
- "notes": itemgetter("Notes"),
25
- "first_row": 3,
26
- "last_row": -1,
27
- "filter": lambda trxn: convert_amount(trxn["Amount"]) < 2500,
28
- }