parallel-web 0.3.3__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.
- parallel_web-0.3.3/.gitignore +15 -0
- parallel_web-0.3.3/.release-please-manifest.json +3 -0
- parallel_web-0.3.3/CHANGELOG.md +222 -0
- parallel_web-0.3.3/CONTRIBUTING.md +128 -0
- parallel_web-0.3.3/LICENSE +7 -0
- parallel_web-0.3.3/PKG-INFO +460 -0
- parallel_web-0.3.3/README.md +425 -0
- parallel_web-0.3.3/SECURITY.md +27 -0
- parallel_web-0.3.3/api.md +104 -0
- parallel_web-0.3.3/bin/check-release-environment +21 -0
- parallel_web-0.3.3/bin/publish-pypi +6 -0
- parallel_web-0.3.3/examples/.keep +4 -0
- parallel_web-0.3.3/noxfile.py +9 -0
- parallel_web-0.3.3/pyproject.toml +268 -0
- parallel_web-0.3.3/release-please-config.json +66 -0
- parallel_web-0.3.3/requirements-dev.lock +140 -0
- parallel_web-0.3.3/requirements.lock +75 -0
- parallel_web-0.3.3/src/parallel/__init__.py +102 -0
- parallel_web-0.3.3/src/parallel/_base_client.py +1995 -0
- parallel_web-0.3.3/src/parallel/_client.py +412 -0
- parallel_web-0.3.3/src/parallel/_compat.py +231 -0
- parallel_web-0.3.3/src/parallel/_constants.py +18 -0
- parallel_web-0.3.3/src/parallel/_exceptions.py +108 -0
- parallel_web-0.3.3/src/parallel/_files.py +123 -0
- parallel_web-0.3.3/src/parallel/_models.py +835 -0
- parallel_web-0.3.3/src/parallel/_qs.py +150 -0
- parallel_web-0.3.3/src/parallel/_resource.py +43 -0
- parallel_web-0.3.3/src/parallel/_response.py +830 -0
- parallel_web-0.3.3/src/parallel/_streaming.py +331 -0
- parallel_web-0.3.3/src/parallel/_types.py +260 -0
- parallel_web-0.3.3/src/parallel/_utils/__init__.py +65 -0
- parallel_web-0.3.3/src/parallel/_utils/_compat.py +45 -0
- parallel_web-0.3.3/src/parallel/_utils/_datetime_parse.py +136 -0
- parallel_web-0.3.3/src/parallel/_utils/_logs.py +25 -0
- parallel_web-0.3.3/src/parallel/_utils/_proxy.py +65 -0
- parallel_web-0.3.3/src/parallel/_utils/_reflection.py +42 -0
- parallel_web-0.3.3/src/parallel/_utils/_resources_proxy.py +24 -0
- parallel_web-0.3.3/src/parallel/_utils/_streams.py +12 -0
- parallel_web-0.3.3/src/parallel/_utils/_sync.py +86 -0
- parallel_web-0.3.3/src/parallel/_utils/_transform.py +457 -0
- parallel_web-0.3.3/src/parallel/_utils/_typing.py +156 -0
- parallel_web-0.3.3/src/parallel/_utils/_utils.py +425 -0
- parallel_web-0.3.3/src/parallel/_version.py +4 -0
- parallel_web-0.3.3/src/parallel/lib/.keep +4 -0
- parallel_web-0.3.3/src/parallel/lib/__init__.py +0 -0
- parallel_web-0.3.3/src/parallel/lib/_parsing/__init__.py +2 -0
- parallel_web-0.3.3/src/parallel/lib/_parsing/_task_run_result.py +99 -0
- parallel_web-0.3.3/src/parallel/lib/_parsing/_task_spec.py +93 -0
- parallel_web-0.3.3/src/parallel/lib/_pydantic.py +32 -0
- parallel_web-0.3.3/src/parallel/lib/_time.py +74 -0
- parallel_web-0.3.3/src/parallel/py.typed +0 -0
- parallel_web-0.3.3/src/parallel/resources/__init__.py +33 -0
- parallel_web-0.3.3/src/parallel/resources/beta/__init__.py +47 -0
- parallel_web-0.3.3/src/parallel/resources/beta/beta.py +534 -0
- parallel_web-0.3.3/src/parallel/resources/beta/task_group.py +673 -0
- parallel_web-0.3.3/src/parallel/resources/beta/task_run.py +530 -0
- parallel_web-0.3.3/src/parallel/resources/task_run.py +672 -0
- parallel_web-0.3.3/src/parallel/types/__init__.py +27 -0
- parallel_web-0.3.3/src/parallel/types/auto_schema.py +13 -0
- parallel_web-0.3.3/src/parallel/types/auto_schema_param.py +12 -0
- parallel_web-0.3.3/src/parallel/types/beta/__init__.py +37 -0
- parallel_web-0.3.3/src/parallel/types/beta/beta_extract_params.py +59 -0
- parallel_web-0.3.3/src/parallel/types/beta/beta_run_input.py +63 -0
- parallel_web-0.3.3/src/parallel/types/beta/beta_run_input_param.py +65 -0
- parallel_web-0.3.3/src/parallel/types/beta/beta_search_params.py +66 -0
- parallel_web-0.3.3/src/parallel/types/beta/beta_task_run_result.py +74 -0
- parallel_web-0.3.3/src/parallel/types/beta/error_event.py +16 -0
- parallel_web-0.3.3/src/parallel/types/beta/excerpt_settings_param.py +17 -0
- parallel_web-0.3.3/src/parallel/types/beta/extract_error.py +20 -0
- parallel_web-0.3.3/src/parallel/types/beta/extract_response.py +28 -0
- parallel_web-0.3.3/src/parallel/types/beta/extract_result.py +24 -0
- parallel_web-0.3.3/src/parallel/types/beta/fetch_policy_param.py +25 -0
- parallel_web-0.3.3/src/parallel/types/beta/mcp_server.py +25 -0
- parallel_web-0.3.3/src/parallel/types/beta/mcp_server_param.py +27 -0
- parallel_web-0.3.3/src/parallel/types/beta/mcp_tool_call.py +27 -0
- parallel_web-0.3.3/src/parallel/types/beta/parallel_beta_param.py +12 -0
- parallel_web-0.3.3/src/parallel/types/beta/search_result.py +24 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_group.py +24 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_group_add_runs_params.py +30 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_group_create_params.py +13 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_group_events_params.py +16 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_group_events_response.py +28 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_group_get_runs_params.py +18 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_group_get_runs_response.py +12 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_group_run_response.py +30 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_group_status.py +27 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_run_create_params.py +70 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_run_event.py +32 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_run_events_response.py +64 -0
- parallel_web-0.3.3/src/parallel/types/beta/task_run_result_params.py +18 -0
- parallel_web-0.3.3/src/parallel/types/beta/usage_item.py +13 -0
- parallel_web-0.3.3/src/parallel/types/beta/web_search_result.py +21 -0
- parallel_web-0.3.3/src/parallel/types/beta/webhook.py +16 -0
- parallel_web-0.3.3/src/parallel/types/beta/webhook_param.py +16 -0
- parallel_web-0.3.3/src/parallel/types/citation.py +21 -0
- parallel_web-0.3.3/src/parallel/types/field_basis.py +25 -0
- parallel_web-0.3.3/src/parallel/types/json_schema.py +16 -0
- parallel_web-0.3.3/src/parallel/types/json_schema_param.py +16 -0
- parallel_web-0.3.3/src/parallel/types/parsed_task_run_result.py +38 -0
- parallel_web-0.3.3/src/parallel/types/shared/__init__.py +6 -0
- parallel_web-0.3.3/src/parallel/types/shared/error_object.py +18 -0
- parallel_web-0.3.3/src/parallel/types/shared/error_response.py +16 -0
- parallel_web-0.3.3/src/parallel/types/shared/source_policy.py +25 -0
- parallel_web-0.3.3/src/parallel/types/shared/warning.py +22 -0
- parallel_web-0.3.3/src/parallel/types/shared_params/__init__.py +3 -0
- parallel_web-0.3.3/src/parallel/types/shared_params/source_policy.py +27 -0
- parallel_web-0.3.3/src/parallel/types/task_run.py +50 -0
- parallel_web-0.3.3/src/parallel/types/task_run_create_params.py +41 -0
- parallel_web-0.3.3/src/parallel/types/task_run_json_output.py +46 -0
- parallel_web-0.3.3/src/parallel/types/task_run_result.py +52 -0
- parallel_web-0.3.3/src/parallel/types/task_run_result_params.py +13 -0
- parallel_web-0.3.3/src/parallel/types/task_run_text_output.py +37 -0
- parallel_web-0.3.3/src/parallel/types/task_spec.py +31 -0
- parallel_web-0.3.3/src/parallel/types/task_spec_param.py +36 -0
- parallel_web-0.3.3/src/parallel/types/text_schema.py +16 -0
- parallel_web-0.3.3/src/parallel/types/text_schema_param.py +16 -0
- parallel_web-0.3.3/tests/__init__.py +1 -0
- parallel_web-0.3.3/tests/api_resources/__init__.py +1 -0
- parallel_web-0.3.3/tests/api_resources/beta/__init__.py +1 -0
- parallel_web-0.3.3/tests/api_resources/beta/test_task_group.py +613 -0
- parallel_web-0.3.3/tests/api_resources/beta/test_task_run.py +349 -0
- parallel_web-0.3.3/tests/api_resources/test_beta.py +219 -0
- parallel_web-0.3.3/tests/api_resources/test_task_run.py +310 -0
- parallel_web-0.3.3/tests/conftest.py +84 -0
- parallel_web-0.3.3/tests/sample_file.txt +1 -0
- parallel_web-0.3.3/tests/test_client.py +1745 -0
- parallel_web-0.3.3/tests/test_deepcopy.py +58 -0
- parallel_web-0.3.3/tests/test_extract_files.py +64 -0
- parallel_web-0.3.3/tests/test_files.py +51 -0
- parallel_web-0.3.3/tests/test_models.py +963 -0
- parallel_web-0.3.3/tests/test_qs.py +78 -0
- parallel_web-0.3.3/tests/test_required_args.py +111 -0
- parallel_web-0.3.3/tests/test_response.py +277 -0
- parallel_web-0.3.3/tests/test_streaming.py +248 -0
- parallel_web-0.3.3/tests/test_transform.py +460 -0
- parallel_web-0.3.3/tests/test_utils/test_datetime_parse.py +110 -0
- parallel_web-0.3.3/tests/test_utils/test_proxy.py +34 -0
- parallel_web-0.3.3/tests/test_utils/test_typing.py +73 -0
- parallel_web-0.3.3/tests/utils.py +167 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.3.3 (2025-11-06)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.3.2...v0.3.3](https://github.com/parallel-web/parallel-sdk-python/compare/v0.3.2...v0.3.3)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add fetch_policy and mode to /v1beta/search ([1d7200a](https://github.com/parallel-web/parallel-sdk-python/commit/1d7200a56264719ea109e352c3ef0a02609495fd))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **api:** add back /v1/tasks/runs?=beta ([bdecee5](https://github.com/parallel-web/parallel-sdk-python/commit/bdecee5bfd3811751c340ef4ac38e76cdf264c29))
|
|
15
|
+
* **api:** Make beta headers optional in /v1beta/extract ([bc9e1c2](https://github.com/parallel-web/parallel-sdk-python/commit/bc9e1c205267203806d09cf52c0a30482fff40b8))
|
|
16
|
+
* **api:** re-add deprecated max_chars_per_result ([e0976a1](https://github.com/parallel-web/parallel-sdk-python/commit/e0976a12f85f88c82d40ee8129963c483d53cf3b))
|
|
17
|
+
* **api:** re-add deprecated processor to /v1beta/extract ([d656151](https://github.com/parallel-web/parallel-sdk-python/commit/d6561513ed508f4337b650269090c55eea00d7f9))
|
|
18
|
+
* **api:** remove full_content from /v1beta/search output ([c13d6db](https://github.com/parallel-web/parallel-sdk-python/commit/c13d6db25c054a91d0a4c0fa0ad09c051cf0a92a))
|
|
19
|
+
* **client:** close streams without requiring full consumption ([e6ba5dc](https://github.com/parallel-web/parallel-sdk-python/commit/e6ba5dc8bb4cc3ad283540e46375e799e5a10cea))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Chores
|
|
23
|
+
|
|
24
|
+
* **internal/tests:** avoid race condition with implicit client cleanup ([4ec359d](https://github.com/parallel-web/parallel-sdk-python/commit/4ec359dbc78ec6bf64780fcf7499d684205442a8))
|
|
25
|
+
* **internal:** grammar fix (it's -> its) ([fd8a351](https://github.com/parallel-web/parallel-sdk-python/commit/fd8a3518051b452c6e9aff121592c67f60e1be13))
|
|
26
|
+
* **lint:** reorder imports ([901e4f1](https://github.com/parallel-web/parallel-sdk-python/commit/901e4f1a5597a662764ce9d4a890d3075f484984))
|
|
27
|
+
|
|
28
|
+
## 0.3.2 (2025-10-22)
|
|
29
|
+
|
|
30
|
+
Full Changelog: [v0.3.1...v0.3.2](https://github.com/parallel-web/parallel-sdk-python/compare/v0.3.1...v0.3.2)
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **api:** default beta headers for v1beta/search and v1beta/extract ([9f8d8dd](https://github.com/parallel-web/parallel-sdk-python/commit/9f8d8dd6e40f77fb0d1eaf6cc300cb853e734cdf))
|
|
35
|
+
|
|
36
|
+
## 0.3.1 (2025-10-21)
|
|
37
|
+
|
|
38
|
+
Full Changelog: [v0.3.0...v0.3.1](https://github.com/parallel-web/parallel-sdk-python/compare/v0.3.0...v0.3.1)
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
* **api:** manual updates ([0acbe77](https://github.com/parallel-web/parallel-sdk-python/commit/0acbe77da0148029c21e6b3c541e0b1ca163038d))
|
|
43
|
+
|
|
44
|
+
## 0.3.0 (2025-10-21)
|
|
45
|
+
|
|
46
|
+
Full Changelog: [v0.2.2...v0.3.0](https://github.com/parallel-web/parallel-sdk-python/compare/v0.2.2...v0.3.0)
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* **api:** Add /v1beta/extract ([df40ff5](https://github.com/parallel-web/parallel-sdk-python/commit/df40ff551e5a5e91576066de4c8216e3bd7e1bb1))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Chores
|
|
54
|
+
|
|
55
|
+
* bump `httpx-aiohttp` version to 0.1.9 ([4da4812](https://github.com/parallel-web/parallel-sdk-python/commit/4da4812c00f76d6613eb14b388b84171ceee074d))
|
|
56
|
+
|
|
57
|
+
## 0.2.2 (2025-10-16)
|
|
58
|
+
|
|
59
|
+
Full Changelog: [v0.2.1...v0.2.2](https://github.com/parallel-web/parallel-sdk-python/compare/v0.2.1...v0.2.2)
|
|
60
|
+
|
|
61
|
+
### Features
|
|
62
|
+
|
|
63
|
+
* **api:** Add progress meter to Task Run events ([176f9d3](https://github.com/parallel-web/parallel-sdk-python/commit/176f9d318d9d9367b61e40fb6f8c27576e75deb4))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Bug Fixes
|
|
67
|
+
|
|
68
|
+
* do not set headers with default to omit ([8989f91](https://github.com/parallel-web/parallel-sdk-python/commit/8989f9120217bba2c95b2b256a2767f885311652))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Chores
|
|
72
|
+
|
|
73
|
+
* do not install brew dependencies in ./scripts/bootstrap by default ([c3250e2](https://github.com/parallel-web/parallel-sdk-python/commit/c3250e26311cc9b767d06a112317b74f73f78644))
|
|
74
|
+
* **internal:** detect missing future annotations with ruff ([db5980c](https://github.com/parallel-web/parallel-sdk-python/commit/db5980ce6d58ac926eea60d836b36dc8bdd651d7))
|
|
75
|
+
* **internal:** update pydantic dependency ([96f50db](https://github.com/parallel-web/parallel-sdk-python/commit/96f50dbffc919f591a149f89b387ebf19bd4deb0))
|
|
76
|
+
* **types:** change optional parameter type from NotGiven to Omit ([0f0fa20](https://github.com/parallel-web/parallel-sdk-python/commit/0f0fa20994ddb2c89d0def2a16a68b9499e1abd4))
|
|
77
|
+
|
|
78
|
+
## 0.2.1 (2025-09-15)
|
|
79
|
+
|
|
80
|
+
Full Changelog: [v0.2.0...v0.2.1](https://github.com/parallel-web/parallel-sdk-python/compare/v0.2.0...v0.2.1)
|
|
81
|
+
|
|
82
|
+
### Features
|
|
83
|
+
|
|
84
|
+
* **api:** Allow nullable text schemas ([dc87604](https://github.com/parallel-web/parallel-sdk-python/commit/dc87604a3c83bf7c30086c4c23c4e689628bc5a7))
|
|
85
|
+
* improve future compat with pydantic v3 ([ea49f26](https://github.com/parallel-web/parallel-sdk-python/commit/ea49f26543681aa59de34577cae1fb8a57b077c5))
|
|
86
|
+
* **types:** replace List[str] with SequenceNotStr in params ([6155c3f](https://github.com/parallel-web/parallel-sdk-python/commit/6155c3f30b46ce9bd39aaadc3dddf275d555e2ba))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Chores
|
|
90
|
+
|
|
91
|
+
* **internal:** codegen related update ([72ec907](https://github.com/parallel-web/parallel-sdk-python/commit/72ec90723bac0b80a9c8e79f7cab985425beedad))
|
|
92
|
+
* **internal:** move mypy configurations to `pyproject.toml` file ([e03d641](https://github.com/parallel-web/parallel-sdk-python/commit/e03d64154278ebd8d844751d4d55e275177cf4f1))
|
|
93
|
+
* **tests:** simplify `get_platform` test ([9862221](https://github.com/parallel-web/parallel-sdk-python/commit/9862221997402f105c75df206004fc8d6e206ce8))
|
|
94
|
+
|
|
95
|
+
## 0.2.0 (2025-09-01)
|
|
96
|
+
|
|
97
|
+
Full Changelog: [v0.1.3...v0.2.0](https://github.com/parallel-web/parallel-sdk-python/compare/v0.1.3...v0.2.0)
|
|
98
|
+
|
|
99
|
+
### Features
|
|
100
|
+
|
|
101
|
+
* **api:** update via SDK Studio ([b048bd7](https://github.com/parallel-web/parallel-sdk-python/commit/b048bd7e1c5a992ae274aa4b6df16a9d5b0f843e))
|
|
102
|
+
* **api:** update via SDK Studio ([b9abf3c](https://github.com/parallel-web/parallel-sdk-python/commit/b9abf3c8b0e22b260149f01b1ef608924eefe735))
|
|
103
|
+
* **api:** update via SDK Studio ([4326698](https://github.com/parallel-web/parallel-sdk-python/commit/43266988c2123fa1aff00bf0b62c355b0c2bf04e))
|
|
104
|
+
* clean up environment call outs ([3a102e9](https://github.com/parallel-web/parallel-sdk-python/commit/3a102e9a05476e4d28c0ac386cd156cc0fe8b5cf))
|
|
105
|
+
* **client:** add support for aiohttp ([4e2aa32](https://github.com/parallel-web/parallel-sdk-python/commit/4e2aa32ad8242745f56e5a8b810d33c362967dad))
|
|
106
|
+
* **client:** support file upload requests ([ec0c2cf](https://github.com/parallel-web/parallel-sdk-python/commit/ec0c2cf30bd24524567232ad0f661facda124203))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Bug Fixes
|
|
110
|
+
|
|
111
|
+
* add types for backwards compatibility ([c975302](https://github.com/parallel-web/parallel-sdk-python/commit/c975302c0d61d1d6731ccaeb7977c2009cb0b666))
|
|
112
|
+
* avoid newer type syntax ([2ea196d](https://github.com/parallel-web/parallel-sdk-python/commit/2ea196d5d4c7881e61dc848a1387770b4e27e304))
|
|
113
|
+
* **ci:** correct conditional ([99d37f6](https://github.com/parallel-web/parallel-sdk-python/commit/99d37f657a249987ccae60dd0e62f296ab0c1d85))
|
|
114
|
+
* **ci:** release-doctor — report correct token name ([310076b](https://github.com/parallel-web/parallel-sdk-python/commit/310076b2f8a75ed29ba2a1fae0f6e840ec43bb5b))
|
|
115
|
+
* **client:** don't send Content-Type header on GET requests ([f103b4a](https://github.com/parallel-web/parallel-sdk-python/commit/f103b4a72fc25f6a8dd1bda0c8d040aba1f527d1))
|
|
116
|
+
* **parsing:** correctly handle nested discriminated unions ([c9a2300](https://github.com/parallel-web/parallel-sdk-python/commit/c9a23002be2d78a11b5c1b7c901f4ddb32663393))
|
|
117
|
+
* **parsing:** ignore empty metadata ([ab434aa](https://github.com/parallel-web/parallel-sdk-python/commit/ab434aa7bd088fc16279255ae36138ab6dff0730))
|
|
118
|
+
* **parsing:** parse extra field types ([85f5cd4](https://github.com/parallel-web/parallel-sdk-python/commit/85f5cd4191ae168ed443e78a2c7bd747d51404b3))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### Chores
|
|
122
|
+
|
|
123
|
+
* **ci:** change upload type ([40dbd3b](https://github.com/parallel-web/parallel-sdk-python/commit/40dbd3b7d5becf0fe54b62a4acd8696957380053))
|
|
124
|
+
* **ci:** only run for pushes and fork pull requests ([d55fbea](https://github.com/parallel-web/parallel-sdk-python/commit/d55fbea54037d2d833ecc281cbddbc8d6700d24d))
|
|
125
|
+
* **internal:** add Sequence related utils ([cb9a7a9](https://github.com/parallel-web/parallel-sdk-python/commit/cb9a7a905ca4a4a9ba35e540f6c47a8bf89c87d2))
|
|
126
|
+
* **internal:** bump pinned h11 dep ([818f1dd](https://github.com/parallel-web/parallel-sdk-python/commit/818f1ddb3ba1be6bfdb9aee1322d6a3d8a98667a))
|
|
127
|
+
* **internal:** change ci workflow machines ([a90da34](https://github.com/parallel-web/parallel-sdk-python/commit/a90da34910585453eac918a5f273749c00d2f743))
|
|
128
|
+
* **internal:** codegen related update ([47ea68b](https://github.com/parallel-web/parallel-sdk-python/commit/47ea68bd44ad52ac1c18e7215c013f408914890c))
|
|
129
|
+
* **internal:** fix ruff target version ([4e5dbda](https://github.com/parallel-web/parallel-sdk-python/commit/4e5dbda03907f45ac31d18d89714e86f26e79866))
|
|
130
|
+
* **internal:** update comment in script ([631b045](https://github.com/parallel-web/parallel-sdk-python/commit/631b045ae2f138e4c8098fafd9466451d61ca82a))
|
|
131
|
+
* **internal:** update pyright exclude list ([8d2fb29](https://github.com/parallel-web/parallel-sdk-python/commit/8d2fb29b5d80a2fa9ee81a6f9510134fb7bab908))
|
|
132
|
+
* **internal:** version bump ([90d26a5](https://github.com/parallel-web/parallel-sdk-python/commit/90d26a5e8db8bd6a27f9bbc96595da87bd7ea0f3))
|
|
133
|
+
* **package:** mark python 3.13 as supported ([6fa54c4](https://github.com/parallel-web/parallel-sdk-python/commit/6fa54c42a17f5e731f5e97214f0212a0828d3cb8))
|
|
134
|
+
* **project:** add settings file for vscode ([acdeda2](https://github.com/parallel-web/parallel-sdk-python/commit/acdeda2f1f95f5bade2da52d5a2aa8560e71369d))
|
|
135
|
+
* **readme:** fix version rendering on pypi ([2bf10b0](https://github.com/parallel-web/parallel-sdk-python/commit/2bf10b073ab7e015b08c106d265a9091752df51a))
|
|
136
|
+
* **readme:** Remove references to methods, update FAQ for beta ([cefefbf](https://github.com/parallel-web/parallel-sdk-python/commit/cefefbfccba78fdabcc925728836d70400d4e5aa))
|
|
137
|
+
* **tests:** skip some failing tests on the latest python versions ([13b1533](https://github.com/parallel-web/parallel-sdk-python/commit/13b153381e9b7c998a7ebef878518222678dfa83))
|
|
138
|
+
* update @stainless-api/prism-cli to v5.15.0 ([56b5aab](https://github.com/parallel-web/parallel-sdk-python/commit/56b5aab87a833c27b8e1a2bc7c4bf2169ee281a8))
|
|
139
|
+
* update github action ([3d90e19](https://github.com/parallel-web/parallel-sdk-python/commit/3d90e196184e540242fb310cc55b0219d20dff45))
|
|
140
|
+
|
|
141
|
+
## 0.1.3 (2025-08-09)
|
|
142
|
+
|
|
143
|
+
Full Changelog: [v0.1.2...v0.1.3](https://github.com/parallel-web/parallel-sdk-python/compare/v0.1.2...v0.1.3)
|
|
144
|
+
|
|
145
|
+
### Chores
|
|
146
|
+
|
|
147
|
+
* **readme:** update descriptions ([3212a0f](https://github.com/parallel-web/parallel-sdk-python/commit/3212a0fc32d744e7df3d0dcedf527b176a73a91b))
|
|
148
|
+
|
|
149
|
+
## 0.1.2 (2025-06-25)
|
|
150
|
+
|
|
151
|
+
Full Changelog: [v0.1.1...v0.1.2](https://github.com/parallel-web/parallel-sdk-python/compare/v0.1.1...v0.1.2)
|
|
152
|
+
|
|
153
|
+
### Features
|
|
154
|
+
|
|
155
|
+
* **api:** add execute method and structured output support ([5e51379](https://github.com/parallel-web/parallel-sdk-python/commit/5e51379e3ff28bdf70a3cc9167d4413bf3e8690c))
|
|
156
|
+
* **api:** update via SDK Studio ([7526908](https://github.com/parallel-web/parallel-sdk-python/commit/752690867c75ee970582fabc05c939a2f619cb3f))
|
|
157
|
+
* **api:** update via SDK Studio ([6698e71](https://github.com/parallel-web/parallel-sdk-python/commit/6698e716bdddcf2146cc802cfaaa26f7ddb4d3dc))
|
|
158
|
+
* **client:** add follow_redirects request option ([deff733](https://github.com/parallel-web/parallel-sdk-python/commit/deff733f189070bb471ebd6cbf92dfd61d19734a))
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Bug Fixes
|
|
162
|
+
|
|
163
|
+
* **api:** handle retryable errors ([#2](https://github.com/parallel-web/parallel-sdk-python/issues/2)) ([5317550](https://github.com/parallel-web/parallel-sdk-python/commit/531755070eb4b798a7f0b51153414425a0c293b0))
|
|
164
|
+
* **client:** correctly parse binary response | stream ([9546f27](https://github.com/parallel-web/parallel-sdk-python/commit/9546f276ca2d63cf3c6a9b0eef23f1eed35758fa))
|
|
165
|
+
* **package:** support direct resource imports ([52fe297](https://github.com/parallel-web/parallel-sdk-python/commit/52fe297a34a6a2a473be0f124e2febab1df527fe))
|
|
166
|
+
* **pydantic:** add fields to json schema, better error messages ([38a2ddc](https://github.com/parallel-web/parallel-sdk-python/commit/38a2ddc348ac7acf11f9f75f69900b628e539c1d))
|
|
167
|
+
* **tests:** fix: tests which call HTTP endpoints directly with the example parameters ([bfad009](https://github.com/parallel-web/parallel-sdk-python/commit/bfad009314f4f3ce31265d2be07f091eb7db664a))
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
### Chores
|
|
171
|
+
|
|
172
|
+
* **ci:** enable for pull requests ([0ae47ea](https://github.com/parallel-web/parallel-sdk-python/commit/0ae47eaf080510a886eb40aed7c8189faa940f2c))
|
|
173
|
+
* **ci:** fix installation instructions ([150a642](https://github.com/parallel-web/parallel-sdk-python/commit/150a6429ee584a0c32160be88d9bdcd4eeab4579))
|
|
174
|
+
* **ci:** upload sdks to package manager ([3bd8b36](https://github.com/parallel-web/parallel-sdk-python/commit/3bd8b361b84bad87c0943c2fe71465c92cdea599))
|
|
175
|
+
* **docs:** grammar improvements ([c5b636b](https://github.com/parallel-web/parallel-sdk-python/commit/c5b636bfeb60b02f84f5b9e93687359cd9c5c251))
|
|
176
|
+
* **docs:** remove reference to rye shell ([a64869e](https://github.com/parallel-web/parallel-sdk-python/commit/a64869e70e9c493f2dc3e8618327f28544d36058))
|
|
177
|
+
* **docs:** remove unnecessary param examples ([e15712a](https://github.com/parallel-web/parallel-sdk-python/commit/e15712a074ba66a6b0d225bb3a6979a767c15225))
|
|
178
|
+
* **internal:** avoid errors for isinstance checks on proxies ([4149fb9](https://github.com/parallel-web/parallel-sdk-python/commit/4149fb963b39db2211f404f94bf7b55a57c2556b))
|
|
179
|
+
* **internal:** codegen related update ([6a0bb66](https://github.com/parallel-web/parallel-sdk-python/commit/6a0bb662f5011bbea13f75334eb55c5144b50e8b))
|
|
180
|
+
* **internal:** update conftest.py ([0e08356](https://github.com/parallel-web/parallel-sdk-python/commit/0e0835661e91993042605131065729d006761a5a))
|
|
181
|
+
* **readme:** update badges ([36c14b5](https://github.com/parallel-web/parallel-sdk-python/commit/36c14b529ec8611508b6b7cc9065c67e59e5ecdc))
|
|
182
|
+
* **readme:** update low level api examples ([f17e34e](https://github.com/parallel-web/parallel-sdk-python/commit/f17e34e0e0a6d3205c344c278f1643826938e9d1))
|
|
183
|
+
* **tests:** add tests for httpx client instantiation & proxies ([d84ffff](https://github.com/parallel-web/parallel-sdk-python/commit/d84ffff48a814edc81ef62249353053df6398c90))
|
|
184
|
+
* **tests:** run tests in parallel ([62252c6](https://github.com/parallel-web/parallel-sdk-python/commit/62252c6f1098ad138978b6efa1fc2a9c22961040))
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
### Documentation
|
|
188
|
+
|
|
189
|
+
* **client:** fix httpx.Timeout documentation reference ([17f87ee](https://github.com/parallel-web/parallel-sdk-python/commit/17f87eef5af2b06b3791f9218b7ab4f9098faf9c))
|
|
190
|
+
|
|
191
|
+
## 0.1.1 (2025-04-25)
|
|
192
|
+
|
|
193
|
+
Full Changelog: [v0.1.0...v0.1.1](https://github.com/shapleyai/parallel-sdk-python/compare/v0.1.0...v0.1.1)
|
|
194
|
+
|
|
195
|
+
### Features
|
|
196
|
+
|
|
197
|
+
* **api:** update via SDK Studio ([4cc79c4](https://github.com/shapleyai/parallel-sdk-python/commit/4cc79c4d1edaa9d1d080b81830961252c8b327c1))
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
### Bug Fixes
|
|
201
|
+
|
|
202
|
+
* **pydantic:** add fields to json schema, better error messages ([38a2ddc](https://github.com/shapleyai/parallel-sdk-python/commit/38a2ddc348ac7acf11f9f75f69900b628e539c1d))
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Chores
|
|
206
|
+
|
|
207
|
+
* **readme:** update low level api examples ([f17e34e](https://github.com/shapleyai/parallel-sdk-python/commit/f17e34e0e0a6d3205c344c278f1643826938e9d1))
|
|
208
|
+
|
|
209
|
+
## 0.1.0 (2025-04-24)
|
|
210
|
+
|
|
211
|
+
Full Changelog: [v0.0.1-alpha.0...v0.1.0](https://github.com/shapleyai/parallel-sdk-python/compare/v0.0.1-alpha.0...v0.1.0)
|
|
212
|
+
|
|
213
|
+
### Features
|
|
214
|
+
|
|
215
|
+
* **api:** add execute method and structured output support ([5e51379](https://github.com/shapleyai/parallel-sdk-python/commit/5e51379e3ff28bdf70a3cc9167d4413bf3e8690c))
|
|
216
|
+
* **api:** update via SDK Studio ([c393d04](https://github.com/shapleyai/parallel-sdk-python/commit/c393d048bddb554c37eb750ca57c4335243a70ed))
|
|
217
|
+
* **api:** update via SDK Studio ([6698e71](https://github.com/shapleyai/parallel-sdk-python/commit/6698e716bdddcf2146cc802cfaaa26f7ddb4d3dc))
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### Chores
|
|
221
|
+
|
|
222
|
+
* go live ([061677a](https://github.com/shapleyai/parallel-sdk-python/commit/061677a22549f3dd3d9f4591c9ccfdf71209c12e))
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
## Setting up the environment
|
|
2
|
+
|
|
3
|
+
### With Rye
|
|
4
|
+
|
|
5
|
+
We use [Rye](https://rye.astral.sh/) to manage dependencies because it will automatically provision a Python environment with the expected Python version. To set it up, run:
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
$ ./scripts/bootstrap
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or [install Rye manually](https://rye.astral.sh/guide/installation/) and run:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
$ rye sync --all-features
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
You can then run scripts using `rye run python script.py` or by activating the virtual environment:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
# Activate the virtual environment - https://docs.python.org/3/library/venv.html#how-venvs-work
|
|
21
|
+
$ source .venv/bin/activate
|
|
22
|
+
|
|
23
|
+
# now you can omit the `rye run` prefix
|
|
24
|
+
$ python script.py
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Without Rye
|
|
28
|
+
|
|
29
|
+
Alternatively if you don't want to install `Rye`, you can stick with the standard `pip` setup by ensuring you have the Python version specified in `.python-version`, create a virtual environment however you desire and then install dependencies using this command:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
$ pip install -r requirements-dev.lock
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Modifying/Adding code
|
|
36
|
+
|
|
37
|
+
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
|
|
38
|
+
result in merge conflicts between manual patches and changes from the generator. The generator will never
|
|
39
|
+
modify the contents of the `src/parallel/lib/` and `examples/` directories.
|
|
40
|
+
|
|
41
|
+
## Adding and running examples
|
|
42
|
+
|
|
43
|
+
All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.
|
|
44
|
+
|
|
45
|
+
```py
|
|
46
|
+
# add an example to examples/<your-example>.py
|
|
47
|
+
|
|
48
|
+
#!/usr/bin/env -S rye run python
|
|
49
|
+
…
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
$ chmod +x examples/<your-example>.py
|
|
54
|
+
# run the example against your api
|
|
55
|
+
$ ./examples/<your-example>.py
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Using the repository from source
|
|
59
|
+
|
|
60
|
+
If you’d like to use the repository from source, you can either install from git or link to a cloned repository:
|
|
61
|
+
|
|
62
|
+
To install via git:
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
$ pip install git+ssh://git@github.com/parallel-web/parallel-sdk-python.git
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Alternatively, you can build from source and install the wheel file:
|
|
69
|
+
|
|
70
|
+
Building this package will create two files in the `dist/` directory, a `.tar.gz` containing the source files and a `.whl` that can be used to install the package efficiently.
|
|
71
|
+
|
|
72
|
+
To create a distributable version of the library, all you have to do is run this command:
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
$ rye build
|
|
76
|
+
# or
|
|
77
|
+
$ python -m build
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Then to install:
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
$ pip install ./path-to-wheel-file.whl
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Running tests
|
|
87
|
+
|
|
88
|
+
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
|
|
89
|
+
|
|
90
|
+
```sh
|
|
91
|
+
# you will need npm installed
|
|
92
|
+
$ npx prism mock path/to/your/openapi.yml
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
$ ./scripts/test
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Linting and formatting
|
|
100
|
+
|
|
101
|
+
This repository uses [ruff](https://github.com/astral-sh/ruff) and
|
|
102
|
+
[black](https://github.com/psf/black) to format the code in the repository.
|
|
103
|
+
|
|
104
|
+
To lint:
|
|
105
|
+
|
|
106
|
+
```sh
|
|
107
|
+
$ ./scripts/lint
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
To format and fix all ruff issues automatically:
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
$ ./scripts/format
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Publishing and releases
|
|
117
|
+
|
|
118
|
+
Changes made to this repository via the automated release PR pipeline should publish to PyPI automatically. If
|
|
119
|
+
the changes aren't made through the automated pipeline, you may want to make releases manually.
|
|
120
|
+
|
|
121
|
+
### Publish with a GitHub workflow
|
|
122
|
+
|
|
123
|
+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/parallel-web/parallel-sdk-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
|
|
124
|
+
|
|
125
|
+
### Publish manually
|
|
126
|
+
|
|
127
|
+
If you need to manually release a package, you can run the `bin/publish-pypi` script with a `PYPI_TOKEN` set on
|
|
128
|
+
the environment.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2025 Parallel
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|