prelude-python-sdk 0.1.0a4__tar.gz → 0.1.0a6__tar.gz
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.
- prelude_python_sdk-0.1.0a6/.release-please-manifest.json +3 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/CHANGELOG.md +33 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/PKG-INFO +5 -4
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/README.md +4 -3
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/mypy.ini +4 -1
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/pyproject.toml +1 -1
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/requirements-dev.lock +4 -3
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/requirements.lock +2 -2
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/__init__.py +2 -1
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_base_client.py +8 -4
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_types.py +2 -4
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_version.py +1 -1
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/verification_create_params.py +1 -1
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/api_resources/test_verification.py +2 -2
- prelude_python_sdk-0.1.0a4/.release-please-manifest.json +0 -3
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/.gitignore +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/CONTRIBUTING.md +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/LICENSE +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/SECURITY.md +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/api.md +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/bin/check-release-environment +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/bin/publish-pypi +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/examples/.keep +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/noxfile.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/release-please-config.json +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude/lib/.keep +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_client.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_compat.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_constants.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_exceptions.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_files.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_models.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_qs.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_resource.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_response.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_streaming.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/__init__.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_logs.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_proxy.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_reflection.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_streams.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_sync.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_transform.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_typing.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_utils.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/lib/.keep +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/py.typed +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/resources/__init__.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/resources/transactional.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/resources/verification.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/resources/watch.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/__init__.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/transactional_send_params.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/transactional_send_response.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/verification_check_params.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/verification_check_response.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/verification_create_response.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/watch_feed_back_params.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/watch_feed_back_response.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/watch_predict_params.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/watch_predict_response.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_sdk/lib/.keep +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/__init__.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/api_resources/__init__.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/api_resources/test_transactional.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/api_resources/test_watch.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/conftest.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/sample_file.txt +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/test_client.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/test_deepcopy.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/test_extract_files.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/test_files.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/test_models.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/test_qs.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/test_required_args.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/test_response.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/test_streaming.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/test_transform.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/test_utils/test_proxy.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/test_utils/test_typing.py +0 -0
- {prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/utils.py +0 -0
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.6 (2024-12-11)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/prelude-so/python-sdk/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** update via SDK Studio ([#27](https://github.com/prelude-so/python-sdk/issues/27)) ([e34eb1c](https://github.com/prelude-so/python-sdk/commit/e34eb1c2f450d5068cce21d414d3a4a04c3b0766))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **internal:** bump pydantic dependency ([#25](https://github.com/prelude-so/python-sdk/issues/25)) ([62168ae](https://github.com/prelude-so/python-sdk/commit/62168aeb00400db101ef33e54b8c3d8446bea8f4))
|
|
15
|
+
* make the `Omit` type public ([#23](https://github.com/prelude-so/python-sdk/issues/23)) ([b8aa425](https://github.com/prelude-so/python-sdk/commit/b8aa425a77c73290a46dba106cb7277e67d1bf0f))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Documentation
|
|
19
|
+
|
|
20
|
+
* **readme:** fix http client proxies example ([#26](https://github.com/prelude-so/python-sdk/issues/26)) ([66ce358](https://github.com/prelude-so/python-sdk/commit/66ce358d153fef76d64827abe99907badb64d220))
|
|
21
|
+
|
|
22
|
+
## 0.1.0-alpha.5 (2024-12-03)
|
|
23
|
+
|
|
24
|
+
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/prelude-so/python-sdk/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* **client:** compat with new httpx 0.28.0 release ([#20](https://github.com/prelude-so/python-sdk/issues/20)) ([2920a25](https://github.com/prelude-so/python-sdk/commit/2920a25772e640ee100d332658b79836ae0e6375))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Chores
|
|
32
|
+
|
|
33
|
+
* **internal:** bump pyright ([#21](https://github.com/prelude-so/python-sdk/issues/21)) ([3af0b97](https://github.com/prelude-so/python-sdk/commit/3af0b979ddee008fc9dabd2a3d7ce78727df3e03))
|
|
34
|
+
* **internal:** exclude mypy from running on tests ([#18](https://github.com/prelude-so/python-sdk/issues/18)) ([375162d](https://github.com/prelude-so/python-sdk/commit/375162d3e52d77faeaf3970a531a32ef60a50815))
|
|
35
|
+
|
|
3
36
|
## 0.1.0-alpha.4 (2024-11-27)
|
|
4
37
|
|
|
5
38
|
Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/prelude-so/python-sdk/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: prelude-python-sdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a6
|
|
4
4
|
Summary: The official Python library for the Prelude API
|
|
5
5
|
Project-URL: Homepage, https://github.com/prelude-so/python-sdk
|
|
6
6
|
Project-URL: Repository, https://github.com/prelude-so/python-sdk
|
|
@@ -328,18 +328,19 @@ can also get all the extra fields on the Pydantic model as a dict with
|
|
|
328
328
|
|
|
329
329
|
You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:
|
|
330
330
|
|
|
331
|
-
- Support for proxies
|
|
332
|
-
- Custom transports
|
|
331
|
+
- Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
|
|
332
|
+
- Custom [transports](https://www.python-httpx.org/advanced/transports/)
|
|
333
333
|
- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
|
|
334
334
|
|
|
335
335
|
```python
|
|
336
|
+
import httpx
|
|
336
337
|
from prelude_python_sdk import Prelude, DefaultHttpxClient
|
|
337
338
|
|
|
338
339
|
client = Prelude(
|
|
339
340
|
# Or use the `PRELUDE_BASE_URL` env var
|
|
340
341
|
base_url="http://my.test.server.example.com:8083",
|
|
341
342
|
http_client=DefaultHttpxClient(
|
|
342
|
-
|
|
343
|
+
proxy="http://my.test.proxy.example.com",
|
|
343
344
|
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
|
|
344
345
|
),
|
|
345
346
|
)
|
|
@@ -297,18 +297,19 @@ can also get all the extra fields on the Pydantic model as a dict with
|
|
|
297
297
|
|
|
298
298
|
You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:
|
|
299
299
|
|
|
300
|
-
- Support for proxies
|
|
301
|
-
- Custom transports
|
|
300
|
+
- Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
|
|
301
|
+
- Custom [transports](https://www.python-httpx.org/advanced/transports/)
|
|
302
302
|
- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
|
|
303
303
|
|
|
304
304
|
```python
|
|
305
|
+
import httpx
|
|
305
306
|
from prelude_python_sdk import Prelude, DefaultHttpxClient
|
|
306
307
|
|
|
307
308
|
client = Prelude(
|
|
308
309
|
# Or use the `PRELUDE_BASE_URL` env var
|
|
309
310
|
base_url="http://my.test.server.example.com:8083",
|
|
310
311
|
http_client=DefaultHttpxClient(
|
|
311
|
-
|
|
312
|
+
proxy="http://my.test.proxy.example.com",
|
|
312
313
|
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
|
|
313
314
|
),
|
|
314
315
|
)
|
|
@@ -5,7 +5,10 @@ show_error_codes = True
|
|
|
5
5
|
# Exclude _files.py because mypy isn't smart enough to apply
|
|
6
6
|
# the correct type narrowing and as this is an internal module
|
|
7
7
|
# it's fine to just use Pyright.
|
|
8
|
-
|
|
8
|
+
#
|
|
9
|
+
# We also exclude our `tests` as mypy doesn't always infer
|
|
10
|
+
# types correctly and Pyright will still catch any type errors.
|
|
11
|
+
exclude = ^(src/prelude_python_sdk/_files\.py|_dev/.*\.py|tests/.*)$
|
|
9
12
|
|
|
10
13
|
strict_equality = True
|
|
11
14
|
implicit_reexport = True
|
|
@@ -62,13 +62,13 @@ platformdirs==3.11.0
|
|
|
62
62
|
# via virtualenv
|
|
63
63
|
pluggy==1.5.0
|
|
64
64
|
# via pytest
|
|
65
|
-
pydantic==2.
|
|
65
|
+
pydantic==2.10.3
|
|
66
66
|
# via prelude-python-sdk
|
|
67
|
-
pydantic-core==2.
|
|
67
|
+
pydantic-core==2.27.1
|
|
68
68
|
# via pydantic
|
|
69
69
|
pygments==2.18.0
|
|
70
70
|
# via rich
|
|
71
|
-
pyright==1.1.
|
|
71
|
+
pyright==1.1.389
|
|
72
72
|
pytest==8.3.3
|
|
73
73
|
# via pytest-asyncio
|
|
74
74
|
pytest-asyncio==0.24.0
|
|
@@ -97,6 +97,7 @@ typing-extensions==4.12.2
|
|
|
97
97
|
# via prelude-python-sdk
|
|
98
98
|
# via pydantic
|
|
99
99
|
# via pydantic-core
|
|
100
|
+
# via pyright
|
|
100
101
|
virtualenv==20.24.5
|
|
101
102
|
# via nox
|
|
102
103
|
zipp==3.17.0
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/__init__.py
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from . import types
|
|
4
|
-
from ._types import NOT_GIVEN, NoneType, NotGiven, Transport, ProxiesTypes
|
|
4
|
+
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
|
|
5
5
|
from ._utils import file_from_path
|
|
6
6
|
from ._client import Client, Stream, Prelude, Timeout, Transport, AsyncClient, AsyncStream, AsyncPrelude, RequestOptions
|
|
7
7
|
from ._models import BaseModel
|
|
@@ -36,6 +36,7 @@ __all__ = [
|
|
|
36
36
|
"ProxiesTypes",
|
|
37
37
|
"NotGiven",
|
|
38
38
|
"NOT_GIVEN",
|
|
39
|
+
"Omit",
|
|
39
40
|
"PreludeError",
|
|
40
41
|
"APIError",
|
|
41
42
|
"APIStatusError",
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_base_client.py
RENAMED
|
@@ -792,6 +792,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|
|
792
792
|
custom_query: Mapping[str, object] | None = None,
|
|
793
793
|
_strict_response_validation: bool,
|
|
794
794
|
) -> None:
|
|
795
|
+
kwargs: dict[str, Any] = {}
|
|
795
796
|
if limits is not None:
|
|
796
797
|
warnings.warn(
|
|
797
798
|
"The `connection_pool_limits` argument is deprecated. The `http_client` argument should be passed instead",
|
|
@@ -804,6 +805,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|
|
804
805
|
limits = DEFAULT_CONNECTION_LIMITS
|
|
805
806
|
|
|
806
807
|
if transport is not None:
|
|
808
|
+
kwargs["transport"] = transport
|
|
807
809
|
warnings.warn(
|
|
808
810
|
"The `transport` argument is deprecated. The `http_client` argument should be passed instead",
|
|
809
811
|
category=DeprecationWarning,
|
|
@@ -813,6 +815,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|
|
813
815
|
raise ValueError("The `http_client` argument is mutually exclusive with `transport`")
|
|
814
816
|
|
|
815
817
|
if proxies is not None:
|
|
818
|
+
kwargs["proxies"] = proxies
|
|
816
819
|
warnings.warn(
|
|
817
820
|
"The `proxies` argument is deprecated. The `http_client` argument should be passed instead",
|
|
818
821
|
category=DeprecationWarning,
|
|
@@ -856,10 +859,9 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|
|
856
859
|
base_url=base_url,
|
|
857
860
|
# cast to a valid type because mypy doesn't understand our type narrowing
|
|
858
861
|
timeout=cast(Timeout, timeout),
|
|
859
|
-
proxies=proxies,
|
|
860
|
-
transport=transport,
|
|
861
862
|
limits=limits,
|
|
862
863
|
follow_redirects=True,
|
|
864
|
+
**kwargs, # type: ignore
|
|
863
865
|
)
|
|
864
866
|
|
|
865
867
|
def is_closed(self) -> bool:
|
|
@@ -1358,6 +1360,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|
|
1358
1360
|
custom_headers: Mapping[str, str] | None = None,
|
|
1359
1361
|
custom_query: Mapping[str, object] | None = None,
|
|
1360
1362
|
) -> None:
|
|
1363
|
+
kwargs: dict[str, Any] = {}
|
|
1361
1364
|
if limits is not None:
|
|
1362
1365
|
warnings.warn(
|
|
1363
1366
|
"The `connection_pool_limits` argument is deprecated. The `http_client` argument should be passed instead",
|
|
@@ -1370,6 +1373,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|
|
1370
1373
|
limits = DEFAULT_CONNECTION_LIMITS
|
|
1371
1374
|
|
|
1372
1375
|
if transport is not None:
|
|
1376
|
+
kwargs["transport"] = transport
|
|
1373
1377
|
warnings.warn(
|
|
1374
1378
|
"The `transport` argument is deprecated. The `http_client` argument should be passed instead",
|
|
1375
1379
|
category=DeprecationWarning,
|
|
@@ -1379,6 +1383,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|
|
1379
1383
|
raise ValueError("The `http_client` argument is mutually exclusive with `transport`")
|
|
1380
1384
|
|
|
1381
1385
|
if proxies is not None:
|
|
1386
|
+
kwargs["proxies"] = proxies
|
|
1382
1387
|
warnings.warn(
|
|
1383
1388
|
"The `proxies` argument is deprecated. The `http_client` argument should be passed instead",
|
|
1384
1389
|
category=DeprecationWarning,
|
|
@@ -1422,10 +1427,9 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|
|
1422
1427
|
base_url=base_url,
|
|
1423
1428
|
# cast to a valid type because mypy doesn't understand our type narrowing
|
|
1424
1429
|
timeout=cast(Timeout, timeout),
|
|
1425
|
-
proxies=proxies,
|
|
1426
|
-
transport=transport,
|
|
1427
1430
|
limits=limits,
|
|
1428
1431
|
follow_redirects=True,
|
|
1432
|
+
**kwargs, # type: ignore
|
|
1429
1433
|
)
|
|
1430
1434
|
|
|
1431
1435
|
def is_closed(self) -> bool:
|
|
@@ -192,10 +192,8 @@ ResponseT = TypeVar(
|
|
|
192
192
|
StrBytesIntFloat = Union[str, bytes, int, float]
|
|
193
193
|
|
|
194
194
|
# Note: copied from Pydantic
|
|
195
|
-
# https://github.com/pydantic/pydantic/blob/
|
|
196
|
-
IncEx: TypeAlias = Union[
|
|
197
|
-
Set[int], Set[str], Mapping[int, Union["IncEx", Literal[True]]], Mapping[str, Union["IncEx", Literal[True]]]
|
|
198
|
-
]
|
|
195
|
+
# https://github.com/pydantic/pydantic/blob/6f31f8f68ef011f84357330186f603ff295312fd/pydantic/main.py#L79
|
|
196
|
+
IncEx: TypeAlias = Union[Set[int], Set[str], Mapping[int, Union["IncEx", bool]], Mapping[str, Union["IncEx", bool]]]
|
|
199
197
|
|
|
200
198
|
PostParser = Callable[[Any], Any]
|
|
201
199
|
|
|
@@ -95,7 +95,7 @@ class Signals(TypedDict, total=False):
|
|
|
95
95
|
ip: str
|
|
96
96
|
"""The IP address of the user's device."""
|
|
97
97
|
|
|
98
|
-
is_trusted_user:
|
|
98
|
+
is_trusted_user: bool
|
|
99
99
|
"""
|
|
100
100
|
This signal should provide a higher level of trust, indicating that the user is
|
|
101
101
|
genuine. For more details, refer to [Signals](/guides/prevent-fraud#signals).
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/api_resources/test_verification.py
RENAMED
|
@@ -51,7 +51,7 @@ class TestVerification:
|
|
|
51
51
|
"device_model": "iPhone17,2",
|
|
52
52
|
"device_platform": "android",
|
|
53
53
|
"ip": "192.0.2.1",
|
|
54
|
-
"is_trusted_user":
|
|
54
|
+
"is_trusted_user": False,
|
|
55
55
|
"os_version": "18.0.1",
|
|
56
56
|
},
|
|
57
57
|
)
|
|
@@ -165,7 +165,7 @@ class TestAsyncVerification:
|
|
|
165
165
|
"device_model": "iPhone17,2",
|
|
166
166
|
"device_platform": "android",
|
|
167
167
|
"ip": "192.0.2.1",
|
|
168
|
-
"is_trusted_user":
|
|
168
|
+
"is_trusted_user": False,
|
|
169
169
|
"os_version": "18.0.1",
|
|
170
170
|
},
|
|
171
171
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_constants.py
RENAMED
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_resource.py
RENAMED
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_response.py
RENAMED
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_streaming.py
RENAMED
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/__init__.py
RENAMED
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_logs.py
RENAMED
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_proxy.py
RENAMED
|
File without changes
|
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_streams.py
RENAMED
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_sync.py
RENAMED
|
File without changes
|
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_typing.py
RENAMED
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/resources/watch.py
RENAMED
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{prelude_python_sdk-0.1.0a4 → prelude_python_sdk-0.1.0a6}/tests/api_resources/test_transactional.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|