dataleon 0.1.0a5__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.5" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.7" # x-release-please-version
@@ -2,7 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import Required, TypedDict
5
+ from typing import List
6
+ from typing_extensions import Literal, Required, TypedDict
6
7
 
7
8
  __all__ = ["CompanyCreateParams", "Company", "TechnicalData"]
8
9
 
@@ -93,5 +94,8 @@ class TechnicalData(TypedDict, total=False):
93
94
  language: str
94
95
  """Preferred language for responses or notifications (e.g., "eng", "fra")."""
95
96
 
97
+ portal_steps: List[Literal["identity_verification", "document_signing", "proof_of_address", "selfie", "face_match"]]
98
+ """List of steps to include in the portal workflow."""
99
+
96
100
  raw_data: bool
97
101
  """Flag indicating whether to include raw data in the response."""
@@ -338,6 +338,11 @@ class TechnicalData(BaseModel):
338
338
  notification_confirmation: Optional[bool] = None
339
339
  """Flag indicating if notification confirmation is required or received."""
340
340
 
341
+ portal_steps: Optional[
342
+ List[Literal["identity_verification", "document_signing", "proof_of_address", "selfie", "face_match"]]
343
+ ] = None
344
+ """List of steps to include in the portal workflow."""
345
+
341
346
  qr_code: Optional[str] = None
342
347
  """Indicates whether QR code is enabled ("true" or "false")."""
343
348
 
@@ -2,7 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import Required, TypedDict
5
+ from typing import List
6
+ from typing_extensions import Literal, Required, TypedDict
6
7
 
7
8
  __all__ = ["CompanyUpdateParams", "Company", "TechnicalData"]
8
9
 
@@ -93,5 +94,8 @@ class TechnicalData(TypedDict, total=False):
93
94
  language: str
94
95
  """Preferred language for responses or notifications (e.g., "eng", "fra")."""
95
96
 
97
+ portal_steps: List[Literal["identity_verification", "document_signing", "proof_of_address", "selfie", "face_match"]]
98
+ """List of steps to include in the portal workflow."""
99
+
96
100
  raw_data: bool
97
101
  """Flag indicating whether to include raw data in the response."""
@@ -236,6 +236,11 @@ class TechnicalData(BaseModel):
236
236
  notification_confirmation: Optional[bool] = None
237
237
  """Flag indicating if notification confirmation is required or received."""
238
238
 
239
+ portal_steps: Optional[
240
+ List[Literal["identity_verification", "document_signing", "proof_of_address", "selfie", "face_match"]]
241
+ ] = None
242
+ """List of steps to include in the portal workflow."""
243
+
239
244
  qr_code: Optional[str] = None
240
245
  """Indicates whether QR code is enabled ("true" or "false")."""
241
246
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from typing import List
5
6
  from typing_extensions import Literal, Required, TypedDict
6
7
 
7
8
  __all__ = ["IndividualCreateParams", "Person", "TechnicalData"]
@@ -70,5 +71,8 @@ class TechnicalData(TypedDict, total=False):
70
71
  language: str
71
72
  """Preferred language for communication (e.g., "eng", "fra")."""
72
73
 
74
+ portal_steps: List[Literal["identity_verification", "document_signing", "proof_of_address", "selfie", "face_match"]]
75
+ """List of steps to include in the portal workflow."""
76
+
73
77
  raw_data: bool
74
78
  """Flag indicating whether to include raw data in the response."""
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from typing import List
5
6
  from typing_extensions import Literal, Required, TypedDict
6
7
 
7
8
  __all__ = ["IndividualUpdateParams", "Person", "TechnicalData"]
@@ -70,5 +71,8 @@ class TechnicalData(TypedDict, total=False):
70
71
  language: str
71
72
  """Preferred language for communication (e.g., "eng", "fra")."""
72
73
 
74
+ portal_steps: List[Literal["identity_verification", "document_signing", "proof_of_address", "selfie", "face_match"]]
75
+ """List of steps to include in the portal workflow."""
76
+
73
77
  raw_data: bool
74
78
  """Flag indicating whether to include raw data in the response."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dataleon
3
- Version: 0.1.0a5
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=moN9jih6U-85pTmHysjKYemdhN7HZN0fGXjzWt_mOP0,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
@@ -34,18 +34,18 @@ dataleon/resources/individuals/__init__.py,sha256=an2HSHj7Gu7lrBvWPZD1q2yrTd4Bpb
34
34
  dataleon/resources/individuals/documents.py,sha256=t4Tuoo4NyygvCqC4EQ7ujDHGmglrRxRv0hN6RhLRJ4U,13475
35
35
  dataleon/resources/individuals/individuals.py,sha256=JG2YOkgQifwMQtl0aSf01hmoXJc1BERoqnTW-Vuhckg,26792
36
36
  dataleon/types/__init__.py,sha256=7W19MbyWffpYMGyU1TIRnB7sMpQxHMsnAPdrYikUE4A,1109
37
- dataleon/types/company_create_params.py,sha256=2dFo-f1Hlpz2z21NzDg-Xb1HeOrw030e-LW5swdzlCE,2814
37
+ dataleon/types/company_create_params.py,sha256=AkwCrAcp3eFm1qgHNzGEEY-xIJqskwYZlSKemTorsHs,3028
38
38
  dataleon/types/company_list_params.py,sha256=7CMuqd-k7Amguw2Em12nqIureyG9M3wUvprjfcB3jjg,1217
39
39
  dataleon/types/company_list_response.py,sha256=jXdfdJEg3_xPCG3QWFlHcfNAiKbc5ySzlMU2j0r732g,301
40
- dataleon/types/company_registration.py,sha256=sDABQ3o1Wdq459DzES6-NFE9AI6rSL_7Oqbpnmtvi1k,13141
40
+ dataleon/types/company_registration.py,sha256=td1nMEY31weIKYk0t8cbqcvzaDzJxABGdz2mmwBbA3Q,13353
41
41
  dataleon/types/company_retrieve_params.py,sha256=wzwcwRHtN6ljPbdaQQPI3SFNhC1nabPgQE5o8kXfA9U,365
42
- dataleon/types/company_update_params.py,sha256=QJikm-7n3-pSueeG2OcTkJmnpPvfgPEhqyJzmamq-wQ,2814
43
- dataleon/types/individual.py,sha256=30H806h0fq6lpRoChzekkQqGcHdwcPuZlHoOO2haamA,10521
44
- dataleon/types/individual_create_params.py,sha256=h8xEF3EeHkTnTeGz51LMTHWJiF85GjTlNrRYdOdUROs,2114
42
+ dataleon/types/company_update_params.py,sha256=bYSUgKKuvsNprFAikHC9GsycieXmkZ15Aas_ysAS1-w,3028
43
+ dataleon/types/individual.py,sha256=BZdANUSn9ExJg_319WxnGsK82nmCKQ9UJ5B-zkGnxWU,10733
44
+ dataleon/types/individual_create_params.py,sha256=ohLZGV_sKCG8wIiMxSXjU7LFj4WW2xE6FtYpCkz0Kx4,2319
45
45
  dataleon/types/individual_list_params.py,sha256=QYVmp9wZJRIxNudBY-Y8bGgE-7QAcJzCXew4wGJssZM,1233
46
46
  dataleon/types/individual_list_response.py,sha256=ZJbfUgisKEgRwyM5EfZmqDxQ4_-fjcxWJiEK9ycQ2FQ,279
47
47
  dataleon/types/individual_retrieve_params.py,sha256=gGP00sWcniuQOfgravpKMw1bxrAKRU72m0eDpsUtC_E,372
48
- dataleon/types/individual_update_params.py,sha256=TR6_gqops8OgfbAm9orDl0WQFBYtpTzgSO0bl6w66TU,2114
48
+ dataleon/types/individual_update_params.py,sha256=OBX7xuLF3VFOfXG-hJ3GCPQA2RRtz1cLRkmRuhZagN4,2319
49
49
  dataleon/types/companies/__init__.py,sha256=gT75kCMgyfFSqTy-LJ_RieI-01TBV3g_98-Ru9i8V7A,204
50
50
  dataleon/types/companies/document_upload_params.py,sha256=h7zMLmGzzBL_lDkkcqvmWyk0aRykaE4l2VKLCTOR5V8,1654
51
51
  dataleon/types/individuals/__init__.py,sha256=terV_wVTDxEjoV2ig1Uv9kbSR4mehum95ifP_NTbwD8,337
@@ -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.0a5.dist-info/METADATA,sha256=UShr1f3R-vjIPrHuzETIM36JwDgu68b0DSqTMpTRQaY,14763
58
- dataleon-0.1.0a5.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
59
- dataleon-0.1.0a5.dist-info/licenses/LICENSE,sha256=yEUx0WqirQ-Xmfk0Zxni5ksk6UNKi28aPozXs_9l41c,11338
60
- dataleon-0.1.0a5.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,,