prelude-python-sdk 0.1.0a5__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.
Files changed (81) hide show
  1. prelude_python_sdk-0.1.0a6/.release-please-manifest.json +3 -0
  2. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/CHANGELOG.md +19 -0
  3. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/PKG-INFO +5 -4
  4. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/README.md +4 -3
  5. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/pyproject.toml +1 -1
  6. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/requirements-dev.lock +2 -2
  7. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/requirements.lock +2 -2
  8. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/__init__.py +2 -1
  9. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_types.py +2 -4
  10. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_version.py +1 -1
  11. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/verification_create_params.py +1 -1
  12. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/api_resources/test_verification.py +2 -2
  13. prelude_python_sdk-0.1.0a5/.release-please-manifest.json +0 -3
  14. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/.gitignore +0 -0
  15. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/CONTRIBUTING.md +0 -0
  16. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/LICENSE +0 -0
  17. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/SECURITY.md +0 -0
  18. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/api.md +0 -0
  19. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/bin/check-release-environment +0 -0
  20. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/bin/publish-pypi +0 -0
  21. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/examples/.keep +0 -0
  22. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/mypy.ini +0 -0
  23. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/noxfile.py +0 -0
  24. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/release-please-config.json +0 -0
  25. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude/lib/.keep +0 -0
  26. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_base_client.py +0 -0
  27. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_client.py +0 -0
  28. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_compat.py +0 -0
  29. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_constants.py +0 -0
  30. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_exceptions.py +0 -0
  31. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_files.py +0 -0
  32. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_models.py +0 -0
  33. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_qs.py +0 -0
  34. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_resource.py +0 -0
  35. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_response.py +0 -0
  36. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_streaming.py +0 -0
  37. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/__init__.py +0 -0
  38. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_logs.py +0 -0
  39. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_proxy.py +0 -0
  40. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_reflection.py +0 -0
  41. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_streams.py +0 -0
  42. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_sync.py +0 -0
  43. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_transform.py +0 -0
  44. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_typing.py +0 -0
  45. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/_utils/_utils.py +0 -0
  46. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/lib/.keep +0 -0
  47. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/py.typed +0 -0
  48. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/resources/__init__.py +0 -0
  49. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/resources/transactional.py +0 -0
  50. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/resources/verification.py +0 -0
  51. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/resources/watch.py +0 -0
  52. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/__init__.py +0 -0
  53. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/transactional_send_params.py +0 -0
  54. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/transactional_send_response.py +0 -0
  55. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/verification_check_params.py +0 -0
  56. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/verification_check_response.py +0 -0
  57. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/verification_create_response.py +0 -0
  58. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/watch_feed_back_params.py +0 -0
  59. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/watch_feed_back_response.py +0 -0
  60. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/watch_predict_params.py +0 -0
  61. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_python_sdk/types/watch_predict_response.py +0 -0
  62. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/src/prelude_sdk/lib/.keep +0 -0
  63. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/__init__.py +0 -0
  64. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/api_resources/__init__.py +0 -0
  65. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/api_resources/test_transactional.py +0 -0
  66. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/api_resources/test_watch.py +0 -0
  67. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/conftest.py +0 -0
  68. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/sample_file.txt +0 -0
  69. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/test_client.py +0 -0
  70. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/test_deepcopy.py +0 -0
  71. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/test_extract_files.py +0 -0
  72. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/test_files.py +0 -0
  73. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/test_models.py +0 -0
  74. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/test_qs.py +0 -0
  75. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/test_required_args.py +0 -0
  76. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/test_response.py +0 -0
  77. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/test_streaming.py +0 -0
  78. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/test_transform.py +0 -0
  79. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/test_utils/test_proxy.py +0 -0
  80. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/test_utils/test_typing.py +0 -0
  81. {prelude_python_sdk-0.1.0a5 → prelude_python_sdk-0.1.0a6}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.6"
3
+ }
@@ -1,5 +1,24 @@
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
+
3
22
  ## 0.1.0-alpha.5 (2024-12-03)
4
23
 
5
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prelude-python-sdk
3
- Version: 0.1.0a5
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
- proxies="http://my.test.proxy.example.com",
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
- proxies="http://my.test.proxy.example.com",
312
+ proxy="http://my.test.proxy.example.com",
312
313
  transport=httpx.HTTPTransport(local_address="0.0.0.0"),
313
314
  ),
314
315
  )
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "prelude-python-sdk"
3
- version = "0.1.0-alpha.5"
3
+ version = "0.1.0-alpha.6"
4
4
  description = "The official Python library for the Prelude API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -62,9 +62,9 @@ platformdirs==3.11.0
62
62
  # via virtualenv
63
63
  pluggy==1.5.0
64
64
  # via pytest
65
- pydantic==2.9.2
65
+ pydantic==2.10.3
66
66
  # via prelude-python-sdk
67
- pydantic-core==2.23.4
67
+ pydantic-core==2.27.1
68
68
  # via pydantic
69
69
  pygments==2.18.0
70
70
  # via rich
@@ -30,9 +30,9 @@ httpx==0.25.2
30
30
  idna==3.4
31
31
  # via anyio
32
32
  # via httpx
33
- pydantic==2.9.2
33
+ pydantic==2.10.3
34
34
  # via prelude-python-sdk
35
- pydantic-core==2.23.4
35
+ pydantic-core==2.27.1
36
36
  # via pydantic
37
37
  sniffio==1.3.0
38
38
  # via anyio
@@ -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",
@@ -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/32ea570bf96e84234d2992e1ddf40ab8a565925a/pydantic/main.py#L49
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
 
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "prelude_python_sdk"
4
- __version__ = "0.1.0-alpha.5" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.6" # x-release-please-version
@@ -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: str
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).
@@ -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": "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": "is_trusted_user",
168
+ "is_trusted_user": False,
169
169
  "os_version": "18.0.1",
170
170
  },
171
171
  )
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.1.0-alpha.5"
3
- }