tap-belvo 0.0.1b6__py3-none-any.whl → 0.0.1b8__py3-none-any.whl
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.
Potentially problematic release.
This version of tap-belvo might be problematic. Click here for more details.
- tap_belvo/streams/__init__.py +1 -1
- tap_belvo/streams/banking.py +9 -9
- tap_belvo/streams/{links.py → core.py} +14 -4
- tap_belvo/streams/enrichment.py +3 -3
- tap_belvo/streams/fiscal.py +6 -6
- tap_belvo/tap.py +9 -7
- {tap_belvo-0.0.1b6.dist-info → tap_belvo-0.0.1b8.dist-info}/METADATA +5 -6
- tap_belvo-0.0.1b8.dist-info/RECORD +16 -0
- {tap_belvo-0.0.1b6.dist-info → tap_belvo-0.0.1b8.dist-info}/WHEEL +1 -1
- tap_belvo-0.0.1b6.dist-info/RECORD +0 -16
- {tap_belvo-0.0.1b6.dist-info → tap_belvo-0.0.1b8.dist-info}/entry_points.txt +0 -0
- {tap_belvo-0.0.1b6.dist-info → tap_belvo-0.0.1b8.dist-info}/licenses/LICENSE +0 -0
tap_belvo/streams/__init__.py
CHANGED
|
@@ -11,6 +11,7 @@ from tap_belvo.streams.banking import (
|
|
|
11
11
|
ReceivableTransactions,
|
|
12
12
|
Transactions,
|
|
13
13
|
)
|
|
14
|
+
from tap_belvo.streams.core import Institutions, Links
|
|
14
15
|
from tap_belvo.streams.enrichment import Incomes, RecurringExpenses, RiskInsights
|
|
15
16
|
from tap_belvo.streams.fiscal import (
|
|
16
17
|
Invoices,
|
|
@@ -20,7 +21,6 @@ from tap_belvo.streams.fiscal import (
|
|
|
20
21
|
TaxReturns,
|
|
21
22
|
TaxStatuses,
|
|
22
23
|
)
|
|
23
|
-
from tap_belvo.streams.links import Institutions, Links
|
|
24
24
|
|
|
25
25
|
__all__ = [
|
|
26
26
|
"Links",
|
tap_belvo/streams/banking.py
CHANGED
|
@@ -5,7 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import TYPE_CHECKING, Any
|
|
6
6
|
|
|
7
7
|
from tap_belvo.client import BelvoStream
|
|
8
|
-
from tap_belvo.streams.
|
|
8
|
+
from tap_belvo.streams.core import Links
|
|
9
9
|
|
|
10
10
|
if TYPE_CHECKING:
|
|
11
11
|
from urllib.parse import ParseResult
|
|
@@ -16,7 +16,7 @@ class Accounts(BelvoStream):
|
|
|
16
16
|
|
|
17
17
|
name = "banking_accounts"
|
|
18
18
|
path = "/api/accounts"
|
|
19
|
-
primary_keys = ("id",)
|
|
19
|
+
primary_keys = ("id",)
|
|
20
20
|
replication_key = "created_at"
|
|
21
21
|
openapi_ref = "Account"
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ class Transactions(BelvoStream):
|
|
|
26
26
|
|
|
27
27
|
name = "banking_transactions"
|
|
28
28
|
path = "/api/transactions"
|
|
29
|
-
primary_keys = ("id",)
|
|
29
|
+
primary_keys = ("id",)
|
|
30
30
|
replication_key = "created_at"
|
|
31
31
|
openapi_ref = "Account"
|
|
32
32
|
parent_stream_type = Links
|
|
@@ -54,11 +54,11 @@ class Transactions(BelvoStream):
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
class Balances(BelvoStream):
|
|
57
|
-
"""Balances stream."""
|
|
57
|
+
"""DEPRECATED. Balances stream."""
|
|
58
58
|
|
|
59
59
|
name = "banking_balances"
|
|
60
60
|
path = "/api/balances"
|
|
61
|
-
primary_keys = ("id",)
|
|
61
|
+
primary_keys = ("id",)
|
|
62
62
|
replication_key = "value_date"
|
|
63
63
|
openapi_ref = "Balance"
|
|
64
64
|
|
|
@@ -68,7 +68,7 @@ class Owners(BelvoStream):
|
|
|
68
68
|
|
|
69
69
|
name = "banking_owners"
|
|
70
70
|
path = "/api/owners"
|
|
71
|
-
primary_keys = ("id",)
|
|
71
|
+
primary_keys = ("id",)
|
|
72
72
|
replication_key = "created_at"
|
|
73
73
|
openapi_ref = "Owner"
|
|
74
74
|
|
|
@@ -78,7 +78,7 @@ class InvestmentPortfolios(BelvoStream):
|
|
|
78
78
|
|
|
79
79
|
name = "investment_portfolios"
|
|
80
80
|
path = "/investments/portfolios"
|
|
81
|
-
primary_keys = ("id",)
|
|
81
|
+
primary_keys = ("id",)
|
|
82
82
|
replication_key = None
|
|
83
83
|
openapi_ref = "InvestmentsPortfolio"
|
|
84
84
|
|
|
@@ -88,7 +88,7 @@ class InvestmentTransactions(BelvoStream):
|
|
|
88
88
|
|
|
89
89
|
name = "investment_transactions"
|
|
90
90
|
path = "/investments/transactions"
|
|
91
|
-
primary_keys = ("id",)
|
|
91
|
+
primary_keys = ("id",)
|
|
92
92
|
replication_key = "created_at"
|
|
93
93
|
openapi_ref = "InvestmentsInstrumentTransaction"
|
|
94
94
|
|
|
@@ -98,6 +98,6 @@ class ReceivableTransactions(BelvoStream):
|
|
|
98
98
|
|
|
99
99
|
name = "receivable_transactions"
|
|
100
100
|
path = "/receivables/transactions"
|
|
101
|
-
primary_keys = ("id",)
|
|
101
|
+
primary_keys = ("id",)
|
|
102
102
|
replication_key = "created_at"
|
|
103
103
|
openapi_ref = "ReceivablesTransaction"
|
|
@@ -10,9 +10,9 @@ from tap_belvo.client import BelvoStream
|
|
|
10
10
|
class Links(BelvoStream):
|
|
11
11
|
"""Links stream."""
|
|
12
12
|
|
|
13
|
-
name = "
|
|
13
|
+
name = "links"
|
|
14
14
|
path = "/api/links"
|
|
15
|
-
primary_keys = ("id",)
|
|
15
|
+
primary_keys = ("id",)
|
|
16
16
|
replication_key = "created_at"
|
|
17
17
|
openapi_ref = "Link"
|
|
18
18
|
|
|
@@ -36,8 +36,18 @@ class Links(BelvoStream):
|
|
|
36
36
|
class Institutions(BelvoStream):
|
|
37
37
|
"""Institutions stream."""
|
|
38
38
|
|
|
39
|
-
name = "
|
|
39
|
+
name = "institutions"
|
|
40
40
|
path = "/api/institutions"
|
|
41
|
-
primary_keys = ("id",)
|
|
41
|
+
primary_keys = ("id",)
|
|
42
42
|
replication_key = None
|
|
43
43
|
openapi_ref = "Institution"
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class Consents(BelvoStream):
|
|
47
|
+
"""Consents stream."""
|
|
48
|
+
|
|
49
|
+
name = "consents"
|
|
50
|
+
path = "/api/consents"
|
|
51
|
+
primary_keys = ("id",)
|
|
52
|
+
replication_key = None
|
|
53
|
+
openapi_ref = "Consent"
|
tap_belvo/streams/enrichment.py
CHANGED
|
@@ -10,7 +10,7 @@ class Incomes(BelvoStream):
|
|
|
10
10
|
|
|
11
11
|
name = "enrichment_incomes"
|
|
12
12
|
path = "/api/incomes"
|
|
13
|
-
primary_keys = ("id",)
|
|
13
|
+
primary_keys = ("id",)
|
|
14
14
|
openapi_ref = "Income"
|
|
15
15
|
|
|
16
16
|
|
|
@@ -19,7 +19,7 @@ class RecurringExpenses(BelvoStream):
|
|
|
19
19
|
|
|
20
20
|
name = "enrichment_recurring_expenses"
|
|
21
21
|
path = "/api/recurring-expenses"
|
|
22
|
-
primary_keys = ("id",)
|
|
22
|
+
primary_keys = ("id",)
|
|
23
23
|
replication_key = None
|
|
24
24
|
openapi_ref = "RecurringExpenses"
|
|
25
25
|
|
|
@@ -29,6 +29,6 @@ class RiskInsights(BelvoStream):
|
|
|
29
29
|
|
|
30
30
|
name = "enrichment_risk_insights"
|
|
31
31
|
path = "/api/risk-insights"
|
|
32
|
-
primary_keys = ("id",)
|
|
32
|
+
primary_keys = ("id",)
|
|
33
33
|
replication_key = None
|
|
34
34
|
openapi_ref = "RiskInsights"
|
tap_belvo/streams/fiscal.py
CHANGED
|
@@ -10,7 +10,7 @@ class Invoices(BelvoStream):
|
|
|
10
10
|
|
|
11
11
|
name = "fiscal_invoices"
|
|
12
12
|
path = "/api/invoices"
|
|
13
|
-
primary_keys = ("id",)
|
|
13
|
+
primary_keys = ("id",)
|
|
14
14
|
replication_key = "created_at"
|
|
15
15
|
openapi_ref = "InvoiceWithIdSat"
|
|
16
16
|
|
|
@@ -20,7 +20,7 @@ class TaxComplianceStatuses(BelvoStream):
|
|
|
20
20
|
|
|
21
21
|
name = "fiscal_tax_compliance_statuses"
|
|
22
22
|
path = "/api/tax-compliance-status"
|
|
23
|
-
primary_keys = ("id",)
|
|
23
|
+
primary_keys = ("id",)
|
|
24
24
|
replication_key = "created_at"
|
|
25
25
|
openapi_ref = "TaxComplianceStatus"
|
|
26
26
|
|
|
@@ -31,7 +31,7 @@ class TaxDeclarations(BelvoStream):
|
|
|
31
31
|
|
|
32
32
|
name = "fiscal_tax_declarations"
|
|
33
33
|
path = "/api/tax-declarations"
|
|
34
|
-
primary_keys = ("id",)
|
|
34
|
+
primary_keys = ("id",)
|
|
35
35
|
replication_key = "created_at"
|
|
36
36
|
openapi_ref = "TaxDeclaration"
|
|
37
37
|
|
|
@@ -41,7 +41,7 @@ class TaxRetentions(BelvoStream):
|
|
|
41
41
|
|
|
42
42
|
name = "fiscal_tax_retentions"
|
|
43
43
|
path = "/api/tax-retentions"
|
|
44
|
-
primary_keys = ("id",)
|
|
44
|
+
primary_keys = ("id",)
|
|
45
45
|
replication_key = "created_at"
|
|
46
46
|
openapi_ref = "TaxRetentions"
|
|
47
47
|
|
|
@@ -51,7 +51,7 @@ class TaxReturns(BelvoStream):
|
|
|
51
51
|
|
|
52
52
|
name = "fiscal_tax_returns"
|
|
53
53
|
path = "/api/tax-returns"
|
|
54
|
-
primary_keys = ("id",)
|
|
54
|
+
primary_keys = ("id",)
|
|
55
55
|
replication_key = "created_at"
|
|
56
56
|
openapi_ref = "TaxReturn"
|
|
57
57
|
|
|
@@ -61,6 +61,6 @@ class TaxStatuses(BelvoStream):
|
|
|
61
61
|
|
|
62
62
|
name = "fiscal_tax_statuses"
|
|
63
63
|
path = "/api/tax-status"
|
|
64
|
-
primary_keys = ("id",)
|
|
64
|
+
primary_keys = ("id",)
|
|
65
65
|
replication_key = "created_at"
|
|
66
66
|
openapi_ref = "TaxStatusSat"
|
tap_belvo/tap.py
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import singer_sdk
|
|
6
6
|
from singer_sdk import typing as th
|
|
7
7
|
|
|
8
|
-
from tap_belvo.streams import banking, enrichment, fiscal
|
|
8
|
+
from tap_belvo.streams import banking, core, enrichment, fiscal
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class TapBelvo(Tap):
|
|
11
|
+
class TapBelvo(singer_sdk.Tap):
|
|
12
12
|
"""Singer tap for Belvo."""
|
|
13
13
|
|
|
14
14
|
name = "tap-belvo"
|
|
@@ -41,7 +41,7 @@ class TapBelvo(Tap):
|
|
|
41
41
|
),
|
|
42
42
|
).to_dict()
|
|
43
43
|
|
|
44
|
-
def discover_streams(self) -> list[Stream]:
|
|
44
|
+
def discover_streams(self) -> list[singer_sdk.Stream]:
|
|
45
45
|
"""Return a list of discovered streams.
|
|
46
46
|
|
|
47
47
|
Returns:
|
|
@@ -50,11 +50,13 @@ class TapBelvo(Tap):
|
|
|
50
50
|
# TODO(edgarrmondragon): Add tax declarations and tax returns
|
|
51
51
|
# https://github.com/edgarrmondragon/tap-belvo/issues/76
|
|
52
52
|
return [
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
core.Links(self),
|
|
54
|
+
core.Institutions(self),
|
|
55
|
+
# TODO(edgarrmondragon): Register this stream when it's available in the OpenAPI spec # noqa: E501
|
|
56
|
+
# https://statics.belvo.io/openapi-specs/BelvoOpenFinanceApiSpec.json
|
|
57
|
+
# core.Consents(self), # noqa: ERA001
|
|
55
58
|
banking.Accounts(self),
|
|
56
59
|
banking.Transactions(self),
|
|
57
|
-
banking.Balances(self),
|
|
58
60
|
banking.Owners(self),
|
|
59
61
|
# banking.InvestmentPortfolios(self), # noqa: ERA001
|
|
60
62
|
# banking.ReceivableTransactions(self), # noqa: ERA001
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: tap-belvo
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.1b8
|
|
4
4
|
Summary: `tap-belvo` is a Singer tap for Belvo, built with the Meltano SDK for Singer Taps.
|
|
5
5
|
Project-URL: Documentation, https://github.com/edgarrmondragon/tap-belvo#readme
|
|
6
6
|
Project-URL: Homepage, https://github.com/edgarrmondragon/tap-belvo
|
|
@@ -18,14 +18,13 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Requires-Python: >=3.8
|
|
20
20
|
Requires-Dist: importlib-resources; python_version < '3.9'
|
|
21
|
-
Requires-Dist: pendulum~=3.0.0b1; python_version >= '3.12'
|
|
22
21
|
Requires-Dist: requests
|
|
23
22
|
Requires-Dist: requests-cache==1.*
|
|
24
|
-
Requires-Dist: singer-sdk~=0.
|
|
23
|
+
Requires-Dist: singer-sdk~=0.38.0
|
|
25
24
|
Provides-Extra: testing
|
|
26
25
|
Requires-Dist: deptry>=0.12; extra == 'testing'
|
|
27
26
|
Requires-Dist: pytest>=7.4; extra == 'testing'
|
|
28
|
-
Requires-Dist: singer-sdk[testing]
|
|
27
|
+
Requires-Dist: singer-sdk[testing]; extra == 'testing'
|
|
29
28
|
Provides-Extra: typing
|
|
30
29
|
Requires-Dist: mypy; extra == 'typing'
|
|
31
30
|
Requires-Dist: types-requests; extra == 'typing'
|
|
@@ -90,7 +89,7 @@ pipx install hatch
|
|
|
90
89
|
Run integration tests:
|
|
91
90
|
|
|
92
91
|
```bash
|
|
93
|
-
hatch run
|
|
92
|
+
hatch run test:integration
|
|
94
93
|
```
|
|
95
94
|
|
|
96
95
|
You can also test the `tap-belvo` CLI interface directly:
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
tap_belvo/__init__.py,sha256=iyiBrJmF2aO9lg9B8vvrJlfGSSg0I2JooKI4TOFqbtY,80
|
|
2
|
+
tap_belvo/__main__.py,sha256=J5_xhlTVBRRUlQ62HlFpgvpDXaeYZqEpb1-eEO0rSJg,110
|
|
3
|
+
tap_belvo/client.py,sha256=RF-ZPIjj94hUie5H94LSUirlWqr86TrPGwcq7OPi7P8,5422
|
|
4
|
+
tap_belvo/tap.py,sha256=-lhh-BNPWxbMBQZrbt0pNO9Nz_pJzvIxWje6xa9Rj-s,2217
|
|
5
|
+
tap_belvo/openapi/BelvoOpenFinanceApiSpec.json,sha256=YgJHPPsrmOFdFa-K118xvqvB09TZmJdeIHZFsqLXGN4,1287233
|
|
6
|
+
tap_belvo/openapi/__init__.py,sha256=hG9zupkP8FU2f4jPK1Yhqq8gM7d3a9xGgRX9bL6SJ7Y,754
|
|
7
|
+
tap_belvo/streams/__init__.py,sha256=8N4dhnYyBqduknK7s-uGEwcDOKaiEAqdO5_sAUkym4I,935
|
|
8
|
+
tap_belvo/streams/banking.py,sha256=tMrVPJuPC-1hN-oyeyOQXGAJDXYIrnKmiw06rtSMLj4,2466
|
|
9
|
+
tap_belvo/streams/core.py,sha256=ou6LEu81tWdF2GMC2iEOKCyhOR8v9A7wqzex1x-Wxq4,1143
|
|
10
|
+
tap_belvo/streams/enrichment.py,sha256=oiyXvkSK2XRcGjcpfbeTW454eyNGhO-eejdEnuHOFYg,761
|
|
11
|
+
tap_belvo/streams/fiscal.py,sha256=P1kM1TN-Im1XCiTipG-OiKTfbgy0uoW_sg_-D7EnJQo,1603
|
|
12
|
+
tap_belvo-0.0.1b8.dist-info/METADATA,sha256=mLAAjCG3TO1XNqboyESIIWtKkhzlVeVAe8Ah0aFBedU,3963
|
|
13
|
+
tap_belvo-0.0.1b8.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
14
|
+
tap_belvo-0.0.1b8.dist-info/entry_points.txt,sha256=mbs2jnK3SrSgW3kjbO1jMZdQkSAKw-JO8SscyYtN_Pg,57
|
|
15
|
+
tap_belvo-0.0.1b8.dist-info/licenses/LICENSE,sha256=hYHcZxy5jb9T_KQO1dQVotQfhWsU2XBotWBg6FIgklM,1068
|
|
16
|
+
tap_belvo-0.0.1b8.dist-info/RECORD,,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
tap_belvo/__init__.py,sha256=iyiBrJmF2aO9lg9B8vvrJlfGSSg0I2JooKI4TOFqbtY,80
|
|
2
|
-
tap_belvo/__main__.py,sha256=J5_xhlTVBRRUlQ62HlFpgvpDXaeYZqEpb1-eEO0rSJg,110
|
|
3
|
-
tap_belvo/client.py,sha256=RF-ZPIjj94hUie5H94LSUirlWqr86TrPGwcq7OPi7P8,5422
|
|
4
|
-
tap_belvo/tap.py,sha256=p6u1lZcVeTPVkoS9FP3DqWzj8fR5Z5oOVT2ay3po7dc,2006
|
|
5
|
-
tap_belvo/openapi/BelvoOpenFinanceApiSpec.json,sha256=YgJHPPsrmOFdFa-K118xvqvB09TZmJdeIHZFsqLXGN4,1287233
|
|
6
|
-
tap_belvo/openapi/__init__.py,sha256=hG9zupkP8FU2f4jPK1Yhqq8gM7d3a9xGgRX9bL6SJ7Y,754
|
|
7
|
-
tap_belvo/streams/__init__.py,sha256=uzQuiKWBkicZ0CuZNDIeg6oyuuEpLXHiDmBUqlNRssU,936
|
|
8
|
-
tap_belvo/streams/banking.py,sha256=tDHw1NI6eaTm9kRtkNRhLGDK-aG8WMxs0kE4jQ6lvkM,2651
|
|
9
|
-
tap_belvo/streams/enrichment.py,sha256=A4iTZZw_t0_NXmY0VltKVQobFVspe3f6cf5BbZRVQQw,845
|
|
10
|
-
tap_belvo/streams/fiscal.py,sha256=-9oOGJP_Z2DQ5WWV8xM9Sr12-yfyxZlvBu6GpvHsJBg,1771
|
|
11
|
-
tap_belvo/streams/links.py,sha256=wnmAm4SaYbfk6sSi8lFGTnhQYroHVyYMLBQ5HwMhI8o,1021
|
|
12
|
-
tap_belvo-0.0.1b6.dist-info/METADATA,sha256=r9xJzNGJ-sO2hgI5jVHv352IbDkcvPuTHPst7OrzXhU,4031
|
|
13
|
-
tap_belvo-0.0.1b6.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
|
|
14
|
-
tap_belvo-0.0.1b6.dist-info/entry_points.txt,sha256=mbs2jnK3SrSgW3kjbO1jMZdQkSAKw-JO8SscyYtN_Pg,57
|
|
15
|
-
tap_belvo-0.0.1b6.dist-info/licenses/LICENSE,sha256=hYHcZxy5jb9T_KQO1dQVotQfhWsU2XBotWBg6FIgklM,1068
|
|
16
|
-
tap_belvo-0.0.1b6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|