dataleon 0.1.0a6__py3-none-any.whl → 0.1.0a7__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 dataleon might be problematic. Click here for more details.

dataleon/_streaming.py CHANGED
@@ -57,9 +57,8 @@ class Stream(Generic[_T]):
57
57
  for sse in iterator:
58
58
  yield process_data(data=sse.json(), cast_to=cast_to, response=response)
59
59
 
60
- # Ensure the entire stream is consumed
61
- for _sse in iterator:
62
- ...
60
+ # As we might not fully consume the response stream, we need to close it explicitly
61
+ response.close()
63
62
 
64
63
  def __enter__(self) -> Self:
65
64
  return self
@@ -121,9 +120,8 @@ class AsyncStream(Generic[_T]):
121
120
  async for sse in iterator:
122
121
  yield process_data(data=sse.json(), cast_to=cast_to, response=response)
123
122
 
124
- # Ensure the entire stream is consumed
125
- async for _sse in iterator:
126
- ...
123
+ # As we might not fully consume the response stream, we need to close it explicitly
124
+ await response.aclose()
127
125
 
128
126
  async def __aenter__(self) -> Self:
129
127
  return self
dataleon/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "dataleon"
4
- __version__ = "0.1.0-alpha.6" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.7" # x-release-please-version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dataleon
3
- Version: 0.1.0a6
3
+ Version: 0.1.0a7
4
4
  Summary: The official Python library for the dataleon API
5
5
  Project-URL: Homepage, https://github.com/dataleonlabs/dataleon-python
6
6
  Project-URL: Repository, https://github.com/dataleonlabs/dataleon-python
@@ -30,7 +30,7 @@ Requires-Dist: sniffio
30
30
  Requires-Dist: typing-extensions<5,>=4.10
31
31
  Provides-Extra: aiohttp
32
32
  Requires-Dist: aiohttp; extra == 'aiohttp'
33
- Requires-Dist: httpx-aiohttp>=0.1.8; extra == 'aiohttp'
33
+ Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
34
34
  Description-Content-Type: text/markdown
35
35
 
36
36
  # Dataleon Python API library
@@ -9,9 +9,9 @@ dataleon/_models.py,sha256=lKnskYPONAWDvWo8tmbbVk7HmG7UOsI0Nve0vSMmkRc,30452
9
9
  dataleon/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
10
10
  dataleon/_resource.py,sha256=fgorhYtT83s_79XWvOKSwG4cFg7PMsuUhZo5SiISdcw,1112
11
11
  dataleon/_response.py,sha256=CiBLBRRyujvHdUtY9SgkbX5t009r0zabLeRyWZWPJEg,28800
12
- dataleon/_streaming.py,sha256=yoIbzyER1eoqp4sNeSH_BSRgILU6jDxcMDRNhbIN6DA,10108
12
+ dataleon/_streaming.py,sha256=s7M2--bQ83cjqKTgpjsnjujPqFNldYGrgvWVrGP9wU0,10157
13
13
  dataleon/_types.py,sha256=u7zRS8mIXHdm4tLaQ23OZn0xGSND-0g5p2sstVQdKyg,7238
14
- dataleon/_version.py,sha256=eB8D16xhCcwYbBrPJzYMR8b-4JGCUrspa5PKZSVFx_M,168
14
+ dataleon/_version.py,sha256=8c2cNnarpgAf06o8bGXQLep7HcjUIQOyrBV0vbndJHM,168
15
15
  dataleon/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  dataleon/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
17
17
  dataleon/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
@@ -54,7 +54,7 @@ dataleon/types/individuals/document_upload_params.py,sha256=h7zMLmGzzBL_lDkkcqvm
54
54
  dataleon/types/individuals/generic_document.py,sha256=xSYz52McaxAcOlMAsigvicIRpOFq7jPNjp0sVxuQ4ho,1770
55
55
  dataleon/types/shared/__init__.py,sha256=dLIm-HE37QAl09bUulXYHMB1TD04OAzRbWrZa0fGnq8,121
56
56
  dataleon/types/shared/check.py,sha256=xNjjQRra_S7luP2e-96BdUFUey0XQI8Ee5-21tyBL7s,742
57
- dataleon-0.1.0a6.dist-info/METADATA,sha256=0Et1751uSd8jAYCnVQl1qFXetwm6JoDmi0-OzyD1IpY,14763
58
- dataleon-0.1.0a6.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
59
- dataleon-0.1.0a6.dist-info/licenses/LICENSE,sha256=yEUx0WqirQ-Xmfk0Zxni5ksk6UNKi28aPozXs_9l41c,11338
60
- dataleon-0.1.0a6.dist-info/RECORD,,
57
+ dataleon-0.1.0a7.dist-info/METADATA,sha256=e-BnM7ckENTLylIfBb1DSsltANEKgcR7KkWeuZXWxAc,14763
58
+ dataleon-0.1.0a7.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
59
+ dataleon-0.1.0a7.dist-info/licenses/LICENSE,sha256=yEUx0WqirQ-Xmfk0Zxni5ksk6UNKi28aPozXs_9l41c,11338
60
+ dataleon-0.1.0a7.dist-info/RECORD,,