dataleon 0.1.0a2__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.
Files changed (58) hide show
  1. dataleon/__init__.py +100 -0
  2. dataleon/_base_client.py +1995 -0
  3. dataleon/_client.py +412 -0
  4. dataleon/_compat.py +219 -0
  5. dataleon/_constants.py +14 -0
  6. dataleon/_exceptions.py +108 -0
  7. dataleon/_files.py +123 -0
  8. dataleon/_models.py +829 -0
  9. dataleon/_qs.py +150 -0
  10. dataleon/_resource.py +43 -0
  11. dataleon/_response.py +830 -0
  12. dataleon/_streaming.py +333 -0
  13. dataleon/_types.py +219 -0
  14. dataleon/_utils/__init__.py +57 -0
  15. dataleon/_utils/_logs.py +25 -0
  16. dataleon/_utils/_proxy.py +65 -0
  17. dataleon/_utils/_reflection.py +42 -0
  18. dataleon/_utils/_resources_proxy.py +24 -0
  19. dataleon/_utils/_streams.py +12 -0
  20. dataleon/_utils/_sync.py +86 -0
  21. dataleon/_utils/_transform.py +447 -0
  22. dataleon/_utils/_typing.py +151 -0
  23. dataleon/_utils/_utils.py +422 -0
  24. dataleon/_version.py +4 -0
  25. dataleon/lib/.keep +4 -0
  26. dataleon/py.typed +0 -0
  27. dataleon/resources/__init__.py +33 -0
  28. dataleon/resources/companies/__init__.py +33 -0
  29. dataleon/resources/companies/companies.py +706 -0
  30. dataleon/resources/companies/documents.py +361 -0
  31. dataleon/resources/individuals/__init__.py +33 -0
  32. dataleon/resources/individuals/documents.py +361 -0
  33. dataleon/resources/individuals/individuals.py +711 -0
  34. dataleon/types/__init__.py +17 -0
  35. dataleon/types/companies/__init__.py +5 -0
  36. dataleon/types/companies/document_upload_params.py +56 -0
  37. dataleon/types/company_create_params.py +94 -0
  38. dataleon/types/company_list_params.py +37 -0
  39. dataleon/types/company_list_response.py +10 -0
  40. dataleon/types/company_registration.py +431 -0
  41. dataleon/types/company_retrieve_params.py +15 -0
  42. dataleon/types/company_update_params.py +94 -0
  43. dataleon/types/individual.py +325 -0
  44. dataleon/types/individual_create_params.py +68 -0
  45. dataleon/types/individual_list_params.py +37 -0
  46. dataleon/types/individual_list_response.py +10 -0
  47. dataleon/types/individual_retrieve_params.py +15 -0
  48. dataleon/types/individual_update_params.py +68 -0
  49. dataleon/types/individuals/__init__.py +7 -0
  50. dataleon/types/individuals/document_response.py +41 -0
  51. dataleon/types/individuals/document_upload_params.py +56 -0
  52. dataleon/types/individuals/generic_document.py +57 -0
  53. dataleon/types/shared/__init__.py +3 -0
  54. dataleon/types/shared/check.py +26 -0
  55. dataleon-0.1.0a2.dist-info/METADATA +449 -0
  56. dataleon-0.1.0a2.dist-info/RECORD +58 -0
  57. dataleon-0.1.0a2.dist-info/WHEEL +4 -0
  58. dataleon-0.1.0a2.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,56 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Literal, Required, TypedDict
6
+
7
+ from ..._types import FileTypes
8
+
9
+ __all__ = ["DocumentUploadParams"]
10
+
11
+
12
+ class DocumentUploadParams(TypedDict, total=False):
13
+ document_type: Required[
14
+ Literal[
15
+ "liasse_fiscale",
16
+ "amortised_loan_schedule",
17
+ "invoice",
18
+ "receipt",
19
+ "company_statuts",
20
+ "registration_company_certificate",
21
+ "kbis",
22
+ "rib",
23
+ "livret_famille",
24
+ "birth_certificate",
25
+ "payslip",
26
+ "social_security_card",
27
+ "vehicle_registration_certificate",
28
+ "carte_grise",
29
+ "criminal_record_extract",
30
+ "proof_of_address",
31
+ "identity_card_front",
32
+ "identity_card_back",
33
+ "driver_license_front",
34
+ "driver_license_back",
35
+ "identity_document",
36
+ "driver_license",
37
+ "passport",
38
+ "tax",
39
+ "certificate_of_incorporation",
40
+ "certificate_of_good_standing",
41
+ "lcb_ft_lab_aml_policies",
42
+ "niu_entreprise",
43
+ "financial_statements",
44
+ "rccm",
45
+ "proof_of_source_funds",
46
+ "organizational_chart",
47
+ "risk_policies",
48
+ ]
49
+ ]
50
+ """Filter by document type for upload (must be one of the allowed values)"""
51
+
52
+ file: FileTypes
53
+ """File to upload (required)"""
54
+
55
+ url: str
56
+ """URL of the file to upload (either `file` or `url` is required)"""
@@ -0,0 +1,57 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+ from datetime import datetime
5
+
6
+ from ..._models import BaseModel
7
+ from ..shared.check import Check
8
+
9
+ __all__ = ["GenericDocument", "Table", "Value"]
10
+
11
+
12
+ class Table(BaseModel):
13
+ operation: Optional[List[object]] = None
14
+ """List of operations or actions associated with the table."""
15
+
16
+
17
+ class Value(BaseModel):
18
+ confidence: Optional[float] = None
19
+ """Confidence score (between 0 and 1) for the extracted value."""
20
+
21
+ name: Optional[str] = None
22
+ """Name or label of the extracted field."""
23
+
24
+ value: Optional[List[int]] = None
25
+ """List of integer values related to the field (e.g., bounding box coordinates)."""
26
+
27
+
28
+ class GenericDocument(BaseModel):
29
+ id: Optional[str] = None
30
+ """Unique identifier of the document."""
31
+
32
+ checks: Optional[List[Check]] = None
33
+ """List of verification checks performed on the document."""
34
+
35
+ created_at: Optional[datetime] = None
36
+ """Timestamp when the document was created or uploaded."""
37
+
38
+ document_type: Optional[str] = None
39
+ """Type/category of the document."""
40
+
41
+ name: Optional[str] = None
42
+ """Name or label for the document."""
43
+
44
+ signed_url: Optional[str] = None
45
+ """Signed URL for accessing the document file."""
46
+
47
+ state: Optional[str] = None
48
+ """Current processing state of the document (e.g., WAITING, PROCESSED)."""
49
+
50
+ status: Optional[str] = None
51
+ """Status of the document reception or approval."""
52
+
53
+ tables: Optional[List[Table]] = None
54
+ """List of tables extracted from the document, each containing operations."""
55
+
56
+ values: Optional[List[Value]] = None
57
+ """Extracted key-value pairs from the document, including confidence scores."""
@@ -0,0 +1,3 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .check import Check as Check
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+
5
+ from pydantic import Field as FieldInfo
6
+
7
+ from ..._models import BaseModel
8
+
9
+ __all__ = ["Check"]
10
+
11
+
12
+ class Check(BaseModel):
13
+ masked: Optional[bool] = None
14
+ """Indicates whether the result or data is masked/hidden."""
15
+
16
+ message: Optional[str] = None
17
+ """Additional message or explanation about the check result."""
18
+
19
+ name: Optional[str] = None
20
+ """Name or type of the check performed."""
21
+
22
+ validate_: Optional[bool] = FieldInfo(alias="validate", default=None)
23
+ """Result of the check, true if passed."""
24
+
25
+ weight: Optional[int] = None
26
+ """Importance or weight of the check, often used in scoring."""
@@ -0,0 +1,449 @@
1
+ Metadata-Version: 2.3
2
+ Name: dataleon
3
+ Version: 0.1.0a2
4
+ Summary: The official Python library for the dataleon API
5
+ Project-URL: Homepage, https://github.com/dataleonlabs/dataleon-python
6
+ Project-URL: Repository, https://github.com/dataleonlabs/dataleon-python
7
+ Author-email: Dataleon <support@dataleon.ai>
8
+ License: Apache-2.0
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Operating System :: MacOS
12
+ Classifier: Operating System :: Microsoft :: Windows
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Operating System :: POSIX
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Classifier: Typing :: Typed
24
+ Requires-Python: >=3.8
25
+ Requires-Dist: anyio<5,>=3.5.0
26
+ Requires-Dist: distro<2,>=1.7.0
27
+ Requires-Dist: httpx<1,>=0.23.0
28
+ Requires-Dist: pydantic<3,>=1.9.0
29
+ Requires-Dist: sniffio
30
+ Requires-Dist: typing-extensions<5,>=4.10
31
+ Provides-Extra: aiohttp
32
+ Requires-Dist: aiohttp; extra == 'aiohttp'
33
+ Requires-Dist: httpx-aiohttp>=0.1.8; extra == 'aiohttp'
34
+ Description-Content-Type: text/markdown
35
+
36
+ # Dataleon Python API library
37
+
38
+ <!-- prettier-ignore -->
39
+ [![PyPI version](https://img.shields.io/pypi/v/dataleon.svg?label=pypi%20(stable))](https://pypi.org/project/dataleon/)
40
+
41
+ The Dataleon Python library provides convenient access to the Dataleon REST API from any Python 3.8+
42
+ application. The library includes type definitions for all request params and response fields,
43
+ and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
44
+
45
+ It is generated with [Stainless](https://www.stainless.com/).
46
+
47
+ ## Documentation
48
+
49
+ The REST API documentation can be found on [docs.dataleon.ai](https://docs.dataleon.ai). The full API of this library can be found in [api.md](https://github.com/dataleonlabs/dataleon-python/tree/main/api.md).
50
+
51
+ ## Installation
52
+
53
+ ```sh
54
+ # install from PyPI
55
+ pip install --pre dataleon
56
+ ```
57
+
58
+ ## Usage
59
+
60
+ The full API of this library can be found in [api.md](https://github.com/dataleonlabs/dataleon-python/tree/main/api.md).
61
+
62
+ ```python
63
+ import os
64
+ from dataleon import Dataleon
65
+
66
+ client = Dataleon(
67
+ api_key=os.environ.get("DATALEON_API_KEY"), # This is the default and can be omitted
68
+ )
69
+
70
+ individual = client.individuals.create(
71
+ workspace_id="wk_123",
72
+ )
73
+ print(individual.id)
74
+ ```
75
+
76
+ While you can provide an `api_key` keyword argument,
77
+ we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
78
+ to add `DATALEON_API_KEY="My API Key"` to your `.env` file
79
+ so that your API Key is not stored in source control.
80
+
81
+ ## Async usage
82
+
83
+ Simply import `AsyncDataleon` instead of `Dataleon` and use `await` with each API call:
84
+
85
+ ```python
86
+ import os
87
+ import asyncio
88
+ from dataleon import AsyncDataleon
89
+
90
+ client = AsyncDataleon(
91
+ api_key=os.environ.get("DATALEON_API_KEY"), # This is the default and can be omitted
92
+ )
93
+
94
+
95
+ async def main() -> None:
96
+ individual = await client.individuals.create(
97
+ workspace_id="wk_123",
98
+ )
99
+ print(individual.id)
100
+
101
+
102
+ asyncio.run(main())
103
+ ```
104
+
105
+ Functionality between the synchronous and asynchronous clients is otherwise identical.
106
+
107
+ ### With aiohttp
108
+
109
+ By default, the async client uses `httpx` for HTTP requests. However, for improved concurrency performance you may also use `aiohttp` as the HTTP backend.
110
+
111
+ You can enable this by installing `aiohttp`:
112
+
113
+ ```sh
114
+ # install from PyPI
115
+ pip install --pre dataleon[aiohttp]
116
+ ```
117
+
118
+ Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
119
+
120
+ ```python
121
+ import asyncio
122
+ from dataleon import DefaultAioHttpClient
123
+ from dataleon import AsyncDataleon
124
+
125
+
126
+ async def main() -> None:
127
+ async with AsyncDataleon(
128
+ api_key="My API Key",
129
+ http_client=DefaultAioHttpClient(),
130
+ ) as client:
131
+ individual = await client.individuals.create(
132
+ workspace_id="wk_123",
133
+ )
134
+ print(individual.id)
135
+
136
+
137
+ asyncio.run(main())
138
+ ```
139
+
140
+ ## Using types
141
+
142
+ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typing.html#typing.TypedDict). Responses are [Pydantic models](https://docs.pydantic.dev) which also provide helper methods for things like:
143
+
144
+ - Serializing back into JSON, `model.to_json()`
145
+ - Converting to a dictionary, `model.to_dict()`
146
+
147
+ Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.
148
+
149
+ ## Nested params
150
+
151
+ Nested parameters are dictionaries, typed using `TypedDict`, for example:
152
+
153
+ ```python
154
+ from dataleon import Dataleon
155
+
156
+ client = Dataleon()
157
+
158
+ individual = client.individuals.create(
159
+ workspace_id="wk_123",
160
+ person={},
161
+ )
162
+ print(individual.person)
163
+ ```
164
+
165
+ ## File uploads
166
+
167
+ Request parameters that correspond to file uploads can be passed as `bytes`, or a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.
168
+
169
+ ```python
170
+ from pathlib import Path
171
+ from dataleon import Dataleon
172
+
173
+ client = Dataleon()
174
+
175
+ client.individuals.documents.upload(
176
+ individual_id="individual_id",
177
+ document_type="liasse_fiscale",
178
+ file=Path("/path/to/file"),
179
+ )
180
+ ```
181
+
182
+ The async client uses the exact same interface. If you pass a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance, the file contents will be read asynchronously automatically.
183
+
184
+ ## Handling errors
185
+
186
+ When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `dataleon.APIConnectionError` is raised.
187
+
188
+ When the API returns a non-success status code (that is, 4xx or 5xx
189
+ response), a subclass of `dataleon.APIStatusError` is raised, containing `status_code` and `response` properties.
190
+
191
+ All errors inherit from `dataleon.APIError`.
192
+
193
+ ```python
194
+ import dataleon
195
+ from dataleon import Dataleon
196
+
197
+ client = Dataleon()
198
+
199
+ try:
200
+ client.individuals.create(
201
+ workspace_id="wk_123",
202
+ )
203
+ except dataleon.APIConnectionError as e:
204
+ print("The server could not be reached")
205
+ print(e.__cause__) # an underlying Exception, likely raised within httpx.
206
+ except dataleon.RateLimitError as e:
207
+ print("A 429 status code was received; we should back off a bit.")
208
+ except dataleon.APIStatusError as e:
209
+ print("Another non-200-range status code was received")
210
+ print(e.status_code)
211
+ print(e.response)
212
+ ```
213
+
214
+ Error codes are as follows:
215
+
216
+ | Status Code | Error Type |
217
+ | ----------- | -------------------------- |
218
+ | 400 | `BadRequestError` |
219
+ | 401 | `AuthenticationError` |
220
+ | 403 | `PermissionDeniedError` |
221
+ | 404 | `NotFoundError` |
222
+ | 422 | `UnprocessableEntityError` |
223
+ | 429 | `RateLimitError` |
224
+ | >=500 | `InternalServerError` |
225
+ | N/A | `APIConnectionError` |
226
+
227
+ ### Retries
228
+
229
+ Certain errors are automatically retried 2 times by default, with a short exponential backoff.
230
+ Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
231
+ 429 Rate Limit, and >=500 Internal errors are all retried by default.
232
+
233
+ You can use the `max_retries` option to configure or disable retry settings:
234
+
235
+ ```python
236
+ from dataleon import Dataleon
237
+
238
+ # Configure the default for all requests:
239
+ client = Dataleon(
240
+ # default is 2
241
+ max_retries=0,
242
+ )
243
+
244
+ # Or, configure per-request:
245
+ client.with_options(max_retries=5).individuals.create(
246
+ workspace_id="wk_123",
247
+ )
248
+ ```
249
+
250
+ ### Timeouts
251
+
252
+ By default requests time out after 1 minute. You can configure this with a `timeout` option,
253
+ which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
254
+
255
+ ```python
256
+ from dataleon import Dataleon
257
+
258
+ # Configure the default for all requests:
259
+ client = Dataleon(
260
+ # 20 seconds (default is 1 minute)
261
+ timeout=20.0,
262
+ )
263
+
264
+ # More granular control:
265
+ client = Dataleon(
266
+ timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0),
267
+ )
268
+
269
+ # Override per-request:
270
+ client.with_options(timeout=5.0).individuals.create(
271
+ workspace_id="wk_123",
272
+ )
273
+ ```
274
+
275
+ On timeout, an `APITimeoutError` is thrown.
276
+
277
+ Note that requests that time out are [retried twice by default](https://github.com/dataleonlabs/dataleon-python/tree/main/#retries).
278
+
279
+ ## Advanced
280
+
281
+ ### Logging
282
+
283
+ We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module.
284
+
285
+ You can enable logging by setting the environment variable `DATALEON_LOG` to `info`.
286
+
287
+ ```shell
288
+ $ export DATALEON_LOG=info
289
+ ```
290
+
291
+ Or to `debug` for more verbose logging.
292
+
293
+ ### How to tell whether `None` means `null` or missing
294
+
295
+ In an API response, a field may be explicitly `null`, or missing entirely; in either case, its value is `None` in this library. You can differentiate the two cases with `.model_fields_set`:
296
+
297
+ ```py
298
+ if response.my_field is None:
299
+ if 'my_field' not in response.model_fields_set:
300
+ print('Got json like {}, without a "my_field" key present at all.')
301
+ else:
302
+ print('Got json like {"my_field": null}.')
303
+ ```
304
+
305
+ ### Accessing raw response data (e.g. headers)
306
+
307
+ The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
308
+
309
+ ```py
310
+ from dataleon import Dataleon
311
+
312
+ client = Dataleon()
313
+ response = client.individuals.with_raw_response.create(
314
+ workspace_id="wk_123",
315
+ )
316
+ print(response.headers.get('X-My-Header'))
317
+
318
+ individual = response.parse() # get the object that `individuals.create()` would have returned
319
+ print(individual.id)
320
+ ```
321
+
322
+ These methods return an [`APIResponse`](https://github.com/dataleonlabs/dataleon-python/tree/main/src/dataleon/_response.py) object.
323
+
324
+ The async client returns an [`AsyncAPIResponse`](https://github.com/dataleonlabs/dataleon-python/tree/main/src/dataleon/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
325
+
326
+ #### `.with_streaming_response`
327
+
328
+ The above interface eagerly reads the full response body when you make the request, which may not always be what you want.
329
+
330
+ To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
331
+
332
+ ```python
333
+ with client.individuals.with_streaming_response.create(
334
+ workspace_id="wk_123",
335
+ ) as response:
336
+ print(response.headers.get("X-My-Header"))
337
+
338
+ for line in response.iter_lines():
339
+ print(line)
340
+ ```
341
+
342
+ The context manager is required so that the response will reliably be closed.
343
+
344
+ ### Making custom/undocumented requests
345
+
346
+ This library is typed for convenient access to the documented API.
347
+
348
+ If you need to access undocumented endpoints, params, or response properties, the library can still be used.
349
+
350
+ #### Undocumented endpoints
351
+
352
+ To make requests to undocumented endpoints, you can make requests using `client.get`, `client.post`, and other
353
+ http verbs. Options on the client will be respected (such as retries) when making this request.
354
+
355
+ ```py
356
+ import httpx
357
+
358
+ response = client.post(
359
+ "/foo",
360
+ cast_to=httpx.Response,
361
+ body={"my_param": True},
362
+ )
363
+
364
+ print(response.headers.get("x-foo"))
365
+ ```
366
+
367
+ #### Undocumented request params
368
+
369
+ If you want to explicitly send an extra param, you can do so with the `extra_query`, `extra_body`, and `extra_headers` request
370
+ options.
371
+
372
+ #### Undocumented response properties
373
+
374
+ To access undocumented response properties, you can access the extra fields like `response.unknown_prop`. You
375
+ can also get all the extra fields on the Pydantic model as a dict with
376
+ [`response.model_extra`](https://docs.pydantic.dev/latest/api/base_model/#pydantic.BaseModel.model_extra).
377
+
378
+ ### Configuring the HTTP client
379
+
380
+ You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:
381
+
382
+ - Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
383
+ - Custom [transports](https://www.python-httpx.org/advanced/transports/)
384
+ - Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
385
+
386
+ ```python
387
+ import httpx
388
+ from dataleon import Dataleon, DefaultHttpxClient
389
+
390
+ client = Dataleon(
391
+ # Or use the `DATALEON_BASE_URL` env var
392
+ base_url="http://my.test.server.example.com:8083",
393
+ http_client=DefaultHttpxClient(
394
+ proxy="http://my.test.proxy.example.com",
395
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
396
+ ),
397
+ )
398
+ ```
399
+
400
+ You can also customize the client on a per-request basis by using `with_options()`:
401
+
402
+ ```python
403
+ client.with_options(http_client=DefaultHttpxClient(...))
404
+ ```
405
+
406
+ ### Managing HTTP resources
407
+
408
+ By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
409
+
410
+ ```py
411
+ from dataleon import Dataleon
412
+
413
+ with Dataleon() as client:
414
+ # make requests here
415
+ ...
416
+
417
+ # HTTP client is now closed
418
+ ```
419
+
420
+ ## Versioning
421
+
422
+ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
423
+
424
+ 1. Changes that only affect static types, without breaking runtime behavior.
425
+ 2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
426
+ 3. Changes that we do not expect to impact the vast majority of users in practice.
427
+
428
+ We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
429
+
430
+ We are keen for your feedback; please open an [issue](https://www.github.com/dataleonlabs/dataleon-python/issues) with questions, bugs, or suggestions.
431
+
432
+ ### Determining the installed version
433
+
434
+ If you've upgraded to the latest version but aren't seeing any new features you were expecting then your python environment is likely still using an older version.
435
+
436
+ You can determine the version that is being used at runtime with:
437
+
438
+ ```py
439
+ import dataleon
440
+ print(dataleon.__version__)
441
+ ```
442
+
443
+ ## Requirements
444
+
445
+ Python 3.8 or higher.
446
+
447
+ ## Contributing
448
+
449
+ See [the contributing documentation](https://github.com/dataleonlabs/dataleon-python/tree/main/./CONTRIBUTING.md).
@@ -0,0 +1,58 @@
1
+ dataleon/__init__.py,sha256=ko9-qflnjK0FD_fBw7q1y0QgAEDpCycU5Tl3aaOPLpk,2637
2
+ dataleon/_base_client.py,sha256=fMydNTeBFxc4_COFDwb9fZ_2GRhEODnB81lb319RunI,67037
3
+ dataleon/_client.py,sha256=At5lOi-eML4x7tCBK8kav4HPqRwTyHm6ARdlpzQDBRQ,15782
4
+ dataleon/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
5
+ dataleon/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
6
+ dataleon/_exceptions.py,sha256=W4jW5ohMuhllYGCFbW6WnGHimPSx6s5fOZ-8nmQ0-PU,3224
7
+ dataleon/_files.py,sha256=t0rWAe9ugcDgHtsCCCeqmVHYtjWEhsk--KrluyRF9AM,3620
8
+ dataleon/_models.py,sha256=6rDtUmk6jhjGN1q96CUICYfBunNXNhhEk_AqztTm3uE,30012
9
+ dataleon/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
10
+ dataleon/_resource.py,sha256=fgorhYtT83s_79XWvOKSwG4cFg7PMsuUhZo5SiISdcw,1112
11
+ dataleon/_response.py,sha256=CiBLBRRyujvHdUtY9SgkbX5t009r0zabLeRyWZWPJEg,28800
12
+ dataleon/_streaming.py,sha256=yoIbzyER1eoqp4sNeSH_BSRgILU6jDxcMDRNhbIN6DA,10108
13
+ dataleon/_types.py,sha256=3jq3WQatybZdPeLXJckMyIwO92TvPZq6xdyd6vBF0Yw,6199
14
+ dataleon/_version.py,sha256=p7QXLuNLIM85RwPCAYFA06Acjd3oPi1YxSf_OjwPxe0,168
15
+ dataleon/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ dataleon/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
17
+ dataleon/_utils/_logs.py,sha256=faWzeggRB9_zIiG-ByYCn3UjnlzUD7fYAPR9CkCC0oI,780
18
+ dataleon/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
19
+ dataleon/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
20
+ dataleon/_utils/_resources_proxy.py,sha256=0r8-mmHtO-0naTsBkmvTanjHCrBZrCkjoItzAUSYlRU,599
21
+ dataleon/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
22
+ dataleon/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
23
+ dataleon/_utils/_transform.py,sha256=n7kskEWz6o__aoNvhFoGVyDoalNe6mJwp-g7BWkdj88,15617
24
+ dataleon/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0XcnjtY,4602
25
+ dataleon/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
26
+ dataleon/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
27
+ dataleon/resources/__init__.py,sha256=DUqzicaFAQ_yNPplDHxGPIWQWvOJxniKgv6DxUoT_n0,1106
28
+ dataleon/resources/companies/__init__.py,sha256=wws8cy7BTWpr8cZa75I66xiCKeyjEAAFrDOyNhqrVS8,1080
29
+ dataleon/resources/companies/companies.py,sha256=s7R9qQ9j-QxSP429u5gUpFitG6MJEOpwEnC0sRBbOqE,26726
30
+ dataleon/resources/companies/documents.py,sha256=KqlrzzRnB-owlrXeZfdSgz49Z-Eg5mFNPyAXASAXjmk,13415
31
+ dataleon/resources/individuals/__init__.py,sha256=an2HSHj7Gu7lrBvWPZD1q2yrTd4BpbXiDH_IIc0I5t4,1106
32
+ dataleon/resources/individuals/documents.py,sha256=Q2XrcuxCiA4DWTjlp5mOAit-set0Pd6IEXo-bv5U2yc,13499
33
+ dataleon/resources/individuals/individuals.py,sha256=fyi6xmC7lRzD_MHZo0gYiQ5YicV8LdDE7f6A6en-y_k,27068
34
+ dataleon/types/__init__.py,sha256=7W19MbyWffpYMGyU1TIRnB7sMpQxHMsnAPdrYikUE4A,1109
35
+ dataleon/types/company_create_params.py,sha256=gMHHYIwSUWUN1hWche0FT_LZn4Oav__ul4kFdW6fjyo,2682
36
+ dataleon/types/company_list_params.py,sha256=7CMuqd-k7Amguw2Em12nqIureyG9M3wUvprjfcB3jjg,1217
37
+ dataleon/types/company_list_response.py,sha256=jXdfdJEg3_xPCG3QWFlHcfNAiKbc5ySzlMU2j0r732g,301
38
+ dataleon/types/company_registration.py,sha256=Jq2Q-q6BTZQqsl9xOX8ZaNGS6Wb4cvYFpFqG1oF3GWQ,12992
39
+ dataleon/types/company_retrieve_params.py,sha256=wzwcwRHtN6ljPbdaQQPI3SFNhC1nabPgQE5o8kXfA9U,365
40
+ dataleon/types/company_update_params.py,sha256=HW_ZYOdSL040EdRcw-f28_LyvRHLliYAeU44VhWNJGg,2682
41
+ dataleon/types/individual.py,sha256=xEd1YCrlLSexfWeIcGQ3exOSkZSApk5YLtCYeC-LYdk,10258
42
+ dataleon/types/individual_create_params.py,sha256=vQXbUORd4JflkBHOn3O_uPj21NQsiapn39uwXV658s0,1885
43
+ dataleon/types/individual_list_params.py,sha256=QYVmp9wZJRIxNudBY-Y8bGgE-7QAcJzCXew4wGJssZM,1233
44
+ dataleon/types/individual_list_response.py,sha256=ZJbfUgisKEgRwyM5EfZmqDxQ4_-fjcxWJiEK9ycQ2FQ,279
45
+ dataleon/types/individual_retrieve_params.py,sha256=gGP00sWcniuQOfgravpKMw1bxrAKRU72m0eDpsUtC_E,372
46
+ dataleon/types/individual_update_params.py,sha256=lxkjBiOljkdZKemeySd-1FDa3zrw8wVaOJR42bNtpYA,1885
47
+ dataleon/types/companies/__init__.py,sha256=gT75kCMgyfFSqTy-LJ_RieI-01TBV3g_98-Ru9i8V7A,204
48
+ dataleon/types/companies/document_upload_params.py,sha256=h7zMLmGzzBL_lDkkcqvmWyk0aRykaE4l2VKLCTOR5V8,1654
49
+ dataleon/types/individuals/__init__.py,sha256=terV_wVTDxEjoV2ig1Uv9kbSR4mehum95ifP_NTbwD8,337
50
+ dataleon/types/individuals/document_response.py,sha256=Wzc9-trCpgo4LIjcVvBXuXQ9_Kxs6sV-di0LWjMuyno,1270
51
+ dataleon/types/individuals/document_upload_params.py,sha256=h7zMLmGzzBL_lDkkcqvmWyk0aRykaE4l2VKLCTOR5V8,1654
52
+ dataleon/types/individuals/generic_document.py,sha256=xSYz52McaxAcOlMAsigvicIRpOFq7jPNjp0sVxuQ4ho,1770
53
+ dataleon/types/shared/__init__.py,sha256=dLIm-HE37QAl09bUulXYHMB1TD04OAzRbWrZa0fGnq8,121
54
+ dataleon/types/shared/check.py,sha256=xNjjQRra_S7luP2e-96BdUFUey0XQI8Ee5-21tyBL7s,742
55
+ dataleon-0.1.0a2.dist-info/METADATA,sha256=3PvdBL-NBhEfNkK3PE6bJvjYn4j4Nru1lmY8gxr0ll4,14763
56
+ dataleon-0.1.0a2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
57
+ dataleon-0.1.0a2.dist-info/licenses/LICENSE,sha256=yEUx0WqirQ-Xmfk0Zxni5ksk6UNKi28aPozXs_9l41c,11338
58
+ dataleon-0.1.0a2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.26.3
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any