tariochbctools 0.34.0__tar.gz → 0.36__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.
- {tariochbctools-0.34.0/src/tariochbctools.egg-info → tariochbctools-0.36}/PKG-INFO +2 -2
- {tariochbctools-0.34.0 → tariochbctools-0.36}/docs/conf.py +0 -1
- {tariochbctools-0.34.0 → tariochbctools-0.36}/setup.cfg +1 -1
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/swisscard/importer.py +2 -1
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/transferwise/importer.py +10 -5
- {tariochbctools-0.34.0 → tariochbctools-0.36/src/tariochbctools.egg-info}/PKG-INFO +2 -2
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools.egg-info/requires.txt +1 -1
- {tariochbctools-0.34.0 → tariochbctools-0.36}/.coveragerc +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/.isort.cfg +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/.pre-commit-config.yaml +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/.readthedocs.yml +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/LICENSE.txt +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/MANIFEST.in +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/README.rst +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/docs/_static/.gitignore +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/docs/importers.rst +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/docs/index.rst +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/docs/installation.rst +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/docs/license.rst +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/docs/plugins.rst +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/docs/price_fetchers.rst +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/docs/requirements.txt +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/pyproject.toml +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/setup.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/bcge/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/bcge/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/bitst/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/bitst/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/blockchain/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/blockchain/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/cembrastatement/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/cembrastatement/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/general/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/general/mailAdapterImporter.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/general/mt940importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/general/priceLookup.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/ibkr/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/ibkr/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/neon/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/neon/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/nordigen/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/nordigen/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/nordigen/nordigen_config.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/postfinance/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/postfinance/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/quickfile/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/quickfile/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/raiffeisench/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/revolut/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/revolut/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/schedule/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/schedule/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/swisscard/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/transferwise/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/truelayer/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/truelayer/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/viseca/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/viseca/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/zak/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/zak/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/zkb/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/zkb/importer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/plugins/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/plugins/check_portfolio_sum.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/plugins/generate_base_ccy_prices.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/plugins/prices/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/plugins/prices/ibkr.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools.egg-info/SOURCES.txt +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools.egg-info/dependency_links.txt +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools.egg-info/entry_points.txt +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools.egg-info/not-zip-safe +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools.egg-info/top_level.txt +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/conftest.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/importers/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/importers/test_quickfile.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/importers/test_truelayer.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/plugins/__init__.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/plugins/data/generate_base_ccy_prices/entry_already_exists_expected.beancount +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/plugins/data/generate_base_ccy_prices/entry_already_exists_input.beancount +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/plugins/data/generate_base_ccy_prices/missing_fx_expected.beancount +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/plugins/data/generate_base_ccy_prices/missing_fx_input.beancount +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/plugins/data/generate_base_ccy_prices/normal_expected.beancount +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/plugins/data/generate_base_ccy_prices/normal_input.beancount +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/plugins/test_generate_base_ccy_prices.py +0 -0
- {tariochbctools-0.34.0 → tariochbctools-0.36}/tox.ini +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tariochbctools
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.36
|
4
4
|
Summary: Importers, plugins and price fetchers for Beancount
|
5
5
|
Home-page: https://github.com/tarioch/beancounttools/
|
6
6
|
Author: Patrick Ruckstuhl
|
@@ -20,7 +20,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
20
20
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
21
21
|
License-File: LICENSE.txt
|
22
22
|
Requires-Dist: importlib-metadata; python_version < "3.8"
|
23
|
-
Requires-Dist: beancount
|
23
|
+
Requires-Dist: beancount<3,>=2
|
24
24
|
Requires-Dist: bitstampclient
|
25
25
|
Requires-Dist: mt-940
|
26
26
|
Requires-Dist: pyyaml
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/swisscard/importer.py
RENAMED
@@ -33,7 +33,8 @@ class SwisscardImporter(identifier.IdentifyMixin, importer.ImporterProtocol):
|
|
33
33
|
book_date = parse(row["Transaction date"].strip(), dayfirst=True).date()
|
34
34
|
amt = amount.Amount(-D(row["Amount"]), row["Currency"])
|
35
35
|
metakv = {
|
36
|
-
"
|
36
|
+
"merchant": row["Merchant Category"],
|
37
|
+
"category": row["Registered Category"],
|
37
38
|
}
|
38
39
|
meta = data.new_metadata(file.name, 0, metakv)
|
39
40
|
description = row["Description"].strip()
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/transferwise/importer.py
RENAMED
@@ -27,8 +27,10 @@ class Importer(importer.ImporterProtocol):
|
|
27
27
|
return ""
|
28
28
|
|
29
29
|
def __init__(self, *args, **kwargs):
|
30
|
+
if "profileId" in kwargs:
|
31
|
+
self.profileId = kwargs.pop("profileId")
|
30
32
|
if "startDate" in kwargs:
|
31
|
-
self.startDate = kwargs
|
33
|
+
self.startDate = kwargs.pop("startDate")
|
32
34
|
else:
|
33
35
|
self.startDate = datetime.combine(
|
34
36
|
date.today() + relativedelta(months=-3),
|
@@ -36,7 +38,7 @@ class Importer(importer.ImporterProtocol):
|
|
36
38
|
timezone.utc,
|
37
39
|
).isoformat()
|
38
40
|
if "endDate" in kwargs:
|
39
|
-
self.endDate = kwargs
|
41
|
+
self.endDate = kwargs.pop("endDate")
|
40
42
|
else:
|
41
43
|
self.endDate = datetime.combine(
|
42
44
|
date.today(), datetime.max.time(), timezone.utc
|
@@ -121,9 +123,12 @@ class Importer(importer.ImporterProtocol):
|
|
121
123
|
self.private_key_path = config["privateKeyPath"]
|
122
124
|
|
123
125
|
headers = {"Authorization": "Bearer " + self.api_token}
|
124
|
-
|
125
|
-
|
126
|
-
|
126
|
+
if not self.profileId:
|
127
|
+
r = requests.get(
|
128
|
+
"https://api.transferwise.com/v1/profiles", headers=headers
|
129
|
+
)
|
130
|
+
profiles = r.json()
|
131
|
+
self.profileId = profiles[0]["id"]
|
127
132
|
|
128
133
|
r = requests.get(
|
129
134
|
"https://api.transferwise.com/v1/borderless-accounts",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tariochbctools
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.36
|
4
4
|
Summary: Importers, plugins and price fetchers for Beancount
|
5
5
|
Home-page: https://github.com/tarioch/beancounttools/
|
6
6
|
Author: Patrick Ruckstuhl
|
@@ -20,7 +20,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
20
20
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
21
21
|
License-File: LICENSE.txt
|
22
22
|
Requires-Dist: importlib-metadata; python_version < "3.8"
|
23
|
-
Requires-Dist: beancount
|
23
|
+
Requires-Dist: beancount<3,>=2
|
24
24
|
Requires-Dist: bitstampclient
|
25
25
|
Requires-Dist: mt-940
|
26
26
|
Requires-Dist: pyyaml
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/bitst/__init__.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/bitst/importer.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/blockchain/__init__.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/blockchain/importer.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/general/__init__.py
RENAMED
File without changes
|
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/general/mt940importer.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/general/priceLookup.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/nordigen/__init__.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/nordigen/importer.py
RENAMED
File without changes
|
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/postfinance/__init__.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/postfinance/importer.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/quickfile/__init__.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/quickfile/importer.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/raiffeisench/importer.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/revolut/__init__.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/revolut/importer.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/schedule/__init__.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/schedule/importer.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/swisscard/__init__.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/transferwise/__init__.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/truelayer/__init__.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/truelayer/importer.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/viseca/__init__.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/importers/viseca/importer.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/plugins/check_portfolio_sum.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools/plugins/generate_base_ccy_prices.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/src/tariochbctools.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/importers/test_quickfile.py
RENAMED
File without changes
|
{tariochbctools-0.34.0 → tariochbctools-0.36}/tests/tariochbctools/importers/test_truelayer.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|