tap-belvo 0.0.1b8__py3-none-any.whl → 0.0.1b10__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/client.py CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ import typing as t
5
6
  from abc import ABCMeta, abstractmethod
6
7
  from copy import deepcopy
7
- from typing import TYPE_CHECKING, Any
8
8
  from urllib.parse import ParseResult, parse_qsl
9
9
 
10
10
  from requests.auth import HTTPBasicAuth
@@ -16,8 +16,9 @@ from singer_sdk.pagination import BaseHATEOASPaginator
16
16
 
17
17
  from tap_belvo.openapi import load_openapi
18
18
 
19
- if TYPE_CHECKING:
19
+ if t.TYPE_CHECKING:
20
20
  from requests import Response
21
+ from singer_sdk.helpers.types import Context
21
22
 
22
23
 
23
24
  PAGE_SIZE = 1000
@@ -25,7 +26,7 @@ PAGE_SIZE = 1000
25
26
  install_cache("tap_belvo_cache", backend="sqlite", expire_after=3600)
26
27
 
27
28
 
28
- def _handle_schema_nullable(schema: dict[str, Any]) -> dict[str, Any]:
29
+ def _handle_schema_nullable(schema: dict[str, t.Any]) -> dict[str, t.Any]:
29
30
  """Resolve x-nullable properties to standard JSON Schema nullable type.
30
31
 
31
32
  Args:
@@ -115,9 +116,9 @@ class BelvoStream(RESTStream[ParseResult], metaclass=ABCMeta):
115
116
 
116
117
  def get_url_params(
117
118
  self,
118
- context: dict[Any, Any] | None,
119
+ context: Context | None,
119
120
  next_page_token: ParseResult | None,
120
- ) -> dict[str, Any]:
121
+ ) -> dict[str, t.Any]:
121
122
  """Get URL query parameters.
122
123
 
123
124
  Args:
@@ -127,7 +128,7 @@ class BelvoStream(RESTStream[ParseResult], metaclass=ABCMeta):
127
128
  Returns:
128
129
  Mapping of URL query parameters.
129
130
  """
130
- params: dict[str, Any] = {
131
+ params: dict[str, t.Any] = {
131
132
  "page": 1,
132
133
  "page_size": PAGE_SIZE,
133
134
  }
@@ -158,14 +159,14 @@ class BelvoStream(RESTStream[ParseResult], metaclass=ABCMeta):
158
159
  type_dict = self.schema.get("properties", {}).get(self.replication_key)
159
160
  return is_date_or_datetime_type(type_dict)
160
161
 
161
- def _resolve_openapi_ref(self) -> dict[str, Any]:
162
+ def _resolve_openapi_ref(self) -> dict[str, t.Any]:
162
163
  schema = {"$ref": f"#/components/schemas/{self.openapi_ref}"}
163
164
  openapi = load_openapi()
164
165
  schema["components"] = openapi["components"]
165
166
  return resolve_schema_references(schema)
166
167
 
167
168
  @property
168
- def schema(self) -> dict[str, Any]:
169
+ def schema(self) -> dict[str, t.Any]:
169
170
  """Return the schema for this stream.
170
171
 
171
172
  Returns:
@@ -2,14 +2,16 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import TYPE_CHECKING, Any
5
+ import typing as t
6
6
 
7
7
  from tap_belvo.client import BelvoStream
8
8
  from tap_belvo.streams.core import Links
9
9
 
10
- if TYPE_CHECKING:
10
+ if t.TYPE_CHECKING:
11
11
  from urllib.parse import ParseResult
12
12
 
13
+ from singer_sdk.helpers.types import Context
14
+
13
15
 
14
16
  class Accounts(BelvoStream):
15
17
  """Accounts stream."""
@@ -33,9 +35,9 @@ class Transactions(BelvoStream):
33
35
 
34
36
  def get_url_params(
35
37
  self,
36
- context: dict[Any, Any] | None,
38
+ context: Context | None,
37
39
  next_page_token: ParseResult | None,
38
- ) -> dict[str, Any]:
40
+ ) -> dict[str, t.Any]:
39
41
  """Get URL query parameters.
40
42
 
41
43
  Args:
tap_belvo/streams/core.py CHANGED
@@ -6,6 +6,9 @@ import typing as t
6
6
 
7
7
  from tap_belvo.client import BelvoStream
8
8
 
9
+ if t.TYPE_CHECKING:
10
+ from singer_sdk.helpers.types import Context
11
+
9
12
 
10
13
  class Links(BelvoStream):
11
14
  """Links stream."""
@@ -19,7 +22,7 @@ class Links(BelvoStream):
19
22
  def get_child_context(
20
23
  self,
21
24
  record: dict[str, t.Any],
22
- context: dict[t.Any, t.Any] | None, # noqa: ARG002
25
+ context: Context | None, # noqa: ARG002
23
26
  ) -> dict[t.Any, t.Any]:
24
27
  """Return the child context.
25
28
 
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: tap-belvo
3
- Version: 0.0.1b8
4
- Summary: `tap-belvo` is a Singer tap for Belvo, built with the Meltano SDK for Singer Taps.
3
+ Version: 0.0.1b10
4
+ Summary: 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
7
7
  Project-URL: Source, https://github.com/edgarrmondragon/tap-belvo
@@ -16,11 +16,12 @@ Classifier: Programming Language :: Python :: 3.9
16
16
  Classifier: Programming Language :: Python :: 3.10
17
17
  Classifier: Programming Language :: Python :: 3.11
18
18
  Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
19
20
  Requires-Python: >=3.8
20
21
  Requires-Dist: importlib-resources; python_version < '3.9'
21
22
  Requires-Dist: requests
22
23
  Requires-Dist: requests-cache==1.*
23
- Requires-Dist: singer-sdk~=0.38.0
24
+ Requires-Dist: singer-sdk~=0.40.0
24
25
  Provides-Extra: testing
25
26
  Requires-Dist: deptry>=0.12; extra == 'testing'
26
27
  Requires-Dist: pytest>=7.4; extra == 'testing'
@@ -1,16 +1,16 @@
1
1
  tap_belvo/__init__.py,sha256=iyiBrJmF2aO9lg9B8vvrJlfGSSg0I2JooKI4TOFqbtY,80
2
2
  tap_belvo/__main__.py,sha256=J5_xhlTVBRRUlQ62HlFpgvpDXaeYZqEpb1-eEO0rSJg,110
3
- tap_belvo/client.py,sha256=RF-ZPIjj94hUie5H94LSUirlWqr86TrPGwcq7OPi7P8,5422
3
+ tap_belvo/client.py,sha256=s2FwmMhZN5eIQjCRDBq0QNHnT-PC9sH2q7vNqoE_Yt4,5459
4
4
  tap_belvo/tap.py,sha256=-lhh-BNPWxbMBQZrbt0pNO9Nz_pJzvIxWje6xa9Rj-s,2217
5
5
  tap_belvo/openapi/BelvoOpenFinanceApiSpec.json,sha256=YgJHPPsrmOFdFa-K118xvqvB09TZmJdeIHZFsqLXGN4,1287233
6
6
  tap_belvo/openapi/__init__.py,sha256=hG9zupkP8FU2f4jPK1Yhqq8gM7d3a9xGgRX9bL6SJ7Y,754
7
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
8
+ tap_belvo/streams/banking.py,sha256=6lRjaZqLbKjFZyK_Yz3uYpXG6ojNS3vJQsINoLsmLNw,2494
9
+ tap_belvo/streams/core.py,sha256=3sdOZFz8jGWj49HMSup5v-MUyvwzSwM2iFMWxxVZEj4,1202
10
10
  tap_belvo/streams/enrichment.py,sha256=oiyXvkSK2XRcGjcpfbeTW454eyNGhO-eejdEnuHOFYg,761
11
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,,
12
+ tap_belvo-0.0.1b10.dist-info/METADATA,sha256=v2Vn33-5B8iZKTJcek5y2JevbxZp7x6nQOkLGL-zVH8,3998
13
+ tap_belvo-0.0.1b10.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
14
+ tap_belvo-0.0.1b10.dist-info/entry_points.txt,sha256=mbs2jnK3SrSgW3kjbO1jMZdQkSAKw-JO8SscyYtN_Pg,57
15
+ tap_belvo-0.0.1b10.dist-info/licenses/LICENSE,sha256=hYHcZxy5jb9T_KQO1dQVotQfhWsU2XBotWBg6FIgklM,1068
16
+ tap_belvo-0.0.1b10.dist-info/RECORD,,