nimble_python 0.11.0__tar.gz → 0.12.0__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.
- nimble_python-0.12.0/.release-please-manifest.json +3 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/CHANGELOG.md +19 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/PKG-INFO +2 -2
- {nimble_python-0.11.0 → nimble_python-0.12.0}/api.md +8 -1
- {nimble_python-0.11.0 → nimble_python-0.12.0}/pyproject.toml +2 -2
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_client.py +112 -1
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_compat.py +9 -2
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_version.py +1 -1
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/__init__.py +2 -0
- nimble_python-0.12.0/src/nimble_python/types/client_extract_batch_params.py +1084 -0
- nimble_python-0.12.0/src/nimble_python/types/extract_batch_response.py +68 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/api_resources/test_client.py +329 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/uv.lock +1 -1
- nimble_python-0.11.0/.release-please-manifest.json +0 -3
- {nimble_python-0.11.0 → nimble_python-0.12.0}/.gitignore +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/CONTRIBUTING.md +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/LICENSE +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/README.md +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/SECURITY.md +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/bin/check-release-environment +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/bin/publish-pypi +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/examples/.keep +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/release-please-config.json +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/requirements-dev.lock +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/__init__.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_base_client.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_constants.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_exceptions.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_files.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_models.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_qs.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_resource.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_streaming.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_types.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/__init__.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/_compat.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/_datetime_parse.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/_json.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/_logs.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/_proxy.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/_reflection.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/_resources_proxy.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/_streams.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/_sync.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/_transform.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/_typing.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/_utils/_utils.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/lib/.keep +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/py.typed +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/resources/__init__.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/resources/agent.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/resources/crawl.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/resources/tasks.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/agent_get_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/agent_list_params.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/agent_list_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/agent_run_async_params.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/agent_run_async_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/agent_run_params.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/agent_run_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/client_extract_async_params.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/client_extract_params.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/client_map_params.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/client_search_params.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/crawl_list_params.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/crawl_list_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/crawl_run_params.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/crawl_run_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/crawl_status_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/crawl_terminate_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/extract_async_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/extract_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/map_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/search_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/__init__.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/auto_scroll_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/click_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/eval_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/fetch_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/fill_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/get_cookies_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/goto_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/press_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/screenshot_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/scroll_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/wait_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/wait_for_element_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared/wait_for_navigation_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/__init__.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/auto_scroll_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/click_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/eval_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/fetch_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/fill_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/get_cookies_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/goto_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/press_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/screenshot_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/scroll_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/wait_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/wait_for_element_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/shared_params/wait_for_navigation_action.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/task_get_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/task_list_params.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/task_list_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimble_python/types/task_results_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/src/nimbleway/lib/.keep +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/__init__.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/api_resources/__init__.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/api_resources/test_agent.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/api_resources/test_crawl.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/api_resources/test_tasks.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/conftest.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/sample_file.txt +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_client.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_deepcopy.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_extract_files.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_files.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_models.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_qs.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_required_args.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_response.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_streaming.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_transform.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_utils/test_json.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_utils/test_proxy.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/test_utils/test_typing.py +0 -0
- {nimble_python-0.11.0 → nimble_python-0.12.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.0 (2026-03-18)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.11.0...v0.12.0](https://github.com/Nimbleway/nimble-python/compare/v0.11.0...v0.12.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([2ea15a2](https://github.com/Nimbleway/nimble-python/commit/2ea15a25dbbaecd0d19f81900c09b3cafc66aa56))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **deps:** bump minimum typing-extensions version ([05fce2b](https://github.com/Nimbleway/nimble-python/commit/05fce2b345c4758ec79c97b11f3ed92d53036b61))
|
|
15
|
+
* **pydantic:** do not pass `by_alias` unless set ([1700093](https://github.com/Nimbleway/nimble-python/commit/170009336ff559e375736dbee881002fc4d5c0fe))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Chores
|
|
19
|
+
|
|
20
|
+
* **internal:** tweak CI branches ([8f134ca](https://github.com/Nimbleway/nimble-python/commit/8f134ca188d5af80631adf9865f5799ca8fe0f93))
|
|
21
|
+
|
|
3
22
|
## 0.11.0 (2026-03-10)
|
|
4
23
|
|
|
5
24
|
Full Changelog: [v0.10.0...v0.11.0](https://github.com/Nimbleway/nimble-python/compare/v0.10.0...v0.11.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: nimble_python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12.0
|
|
4
4
|
Summary: The official Python library for the nimble API
|
|
5
5
|
Project-URL: Homepage, https://github.com/Nimbleway/nimble-python
|
|
6
6
|
Project-URL: Repository, https://github.com/Nimbleway/nimble-python
|
|
@@ -27,7 +27,7 @@ Requires-Dist: distro<2,>=1.7.0
|
|
|
27
27
|
Requires-Dist: httpx<1,>=0.23.0
|
|
28
28
|
Requires-Dist: pydantic<3,>=1.9.0
|
|
29
29
|
Requires-Dist: sniffio
|
|
30
|
-
Requires-Dist: typing-extensions<5,>=4.
|
|
30
|
+
Requires-Dist: typing-extensions<5,>=4.14
|
|
31
31
|
Provides-Extra: aiohttp
|
|
32
32
|
Requires-Dist: aiohttp; extra == 'aiohttp'
|
|
33
33
|
Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
|
|
@@ -23,13 +23,20 @@ from nimble_python.types import (
|
|
|
23
23
|
Types:
|
|
24
24
|
|
|
25
25
|
```python
|
|
26
|
-
from nimble_python.types import
|
|
26
|
+
from nimble_python.types import (
|
|
27
|
+
ExtractResponse,
|
|
28
|
+
ExtractAsyncResponse,
|
|
29
|
+
ExtractBatchResponse,
|
|
30
|
+
MapResponse,
|
|
31
|
+
SearchResponse,
|
|
32
|
+
)
|
|
27
33
|
```
|
|
28
34
|
|
|
29
35
|
Methods:
|
|
30
36
|
|
|
31
37
|
- <code title="post /v1/extract">client.<a href="./src/nimble_python/_client.py">extract</a>(\*\*<a href="src/nimble_python/types/client_extract_params.py">params</a>) -> <a href="./src/nimble_python/types/extract_response.py">ExtractResponse</a></code>
|
|
32
38
|
- <code title="post /v1/extract/async">client.<a href="./src/nimble_python/_client.py">extract_async</a>(\*\*<a href="src/nimble_python/types/client_extract_async_params.py">params</a>) -> <a href="./src/nimble_python/types/extract_async_response.py">ExtractAsyncResponse</a></code>
|
|
39
|
+
- <code title="post /v1/extract/batch">client.<a href="./src/nimble_python/_client.py">extract_batch</a>(\*\*<a href="src/nimble_python/types/client_extract_batch_params.py">params</a>) -> <a href="./src/nimble_python/types/extract_batch_response.py">ExtractBatchResponse</a></code>
|
|
33
40
|
- <code title="post /v1/map">client.<a href="./src/nimble_python/_client.py">map</a>(\*\*<a href="src/nimble_python/types/client_map_params.py">params</a>) -> <a href="./src/nimble_python/types/map_response.py">MapResponse</a></code>
|
|
34
41
|
- <code title="post /v1/search">client.<a href="./src/nimble_python/_client.py">search</a>(\*\*<a href="src/nimble_python/types/client_search_params.py">params</a>) -> <a href="./src/nimble_python/types/search_response.py">SearchResponse</a></code>
|
|
35
42
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "nimble_python"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.12.0"
|
|
4
4
|
description = "The official Python library for the nimble API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -11,7 +11,7 @@ authors = [
|
|
|
11
11
|
dependencies = [
|
|
12
12
|
"httpx>=0.23.0, <1",
|
|
13
13
|
"pydantic>=1.9.0, <3",
|
|
14
|
-
"typing-extensions>=4.
|
|
14
|
+
"typing-extensions>=4.14, <5",
|
|
15
15
|
"anyio>=3.5.0, <5",
|
|
16
16
|
"distro>=1.7.0, <2",
|
|
17
17
|
"sniffio",
|
|
@@ -10,7 +10,13 @@ import httpx
|
|
|
10
10
|
|
|
11
11
|
from . import _exceptions
|
|
12
12
|
from ._qs import Querystring
|
|
13
|
-
from .types import
|
|
13
|
+
from .types import (
|
|
14
|
+
client_map_params,
|
|
15
|
+
client_search_params,
|
|
16
|
+
client_extract_params,
|
|
17
|
+
client_extract_async_params,
|
|
18
|
+
client_extract_batch_params,
|
|
19
|
+
)
|
|
14
20
|
from ._types import (
|
|
15
21
|
Body,
|
|
16
22
|
Omit,
|
|
@@ -51,6 +57,7 @@ from .types.map_response import MapResponse
|
|
|
51
57
|
from .types.search_response import SearchResponse
|
|
52
58
|
from .types.extract_response import ExtractResponse
|
|
53
59
|
from .types.extract_async_response import ExtractAsyncResponse
|
|
60
|
+
from .types.extract_batch_response import ExtractBatchResponse
|
|
54
61
|
|
|
55
62
|
if TYPE_CHECKING:
|
|
56
63
|
from .resources import agent, crawl, tasks
|
|
@@ -2220,6 +2227,52 @@ class Nimble(SyncAPIClient):
|
|
|
2220
2227
|
cast_to=ExtractAsyncResponse,
|
|
2221
2228
|
)
|
|
2222
2229
|
|
|
2230
|
+
def extract_batch(
|
|
2231
|
+
self,
|
|
2232
|
+
*,
|
|
2233
|
+
params: Iterable[client_extract_batch_params.Param],
|
|
2234
|
+
shared_params: client_extract_batch_params.SharedParams | Omit = omit,
|
|
2235
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2236
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
2237
|
+
extra_headers: Headers | None = None,
|
|
2238
|
+
extra_query: Query | None = None,
|
|
2239
|
+
extra_body: Body | None = None,
|
|
2240
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
2241
|
+
) -> ExtractBatchResponse:
|
|
2242
|
+
"""Extract Batch Endpoint
|
|
2243
|
+
|
|
2244
|
+
Args:
|
|
2245
|
+
params: Array of extraction requests.
|
|
2246
|
+
|
|
2247
|
+
Each object represents one extraction with its own
|
|
2248
|
+
parameters.
|
|
2249
|
+
|
|
2250
|
+
shared_params: Shared parameters applied to the entire batch, such as storage and callback
|
|
2251
|
+
configuration.
|
|
2252
|
+
|
|
2253
|
+
extra_headers: Send extra headers
|
|
2254
|
+
|
|
2255
|
+
extra_query: Add additional query parameters to the request
|
|
2256
|
+
|
|
2257
|
+
extra_body: Add additional JSON properties to the request
|
|
2258
|
+
|
|
2259
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
2260
|
+
"""
|
|
2261
|
+
return self.post(
|
|
2262
|
+
"/v1/extract/batch",
|
|
2263
|
+
body=maybe_transform(
|
|
2264
|
+
{
|
|
2265
|
+
"params": params,
|
|
2266
|
+
"shared_params": shared_params,
|
|
2267
|
+
},
|
|
2268
|
+
client_extract_batch_params.ClientExtractBatchParams,
|
|
2269
|
+
),
|
|
2270
|
+
options=make_request_options(
|
|
2271
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
2272
|
+
),
|
|
2273
|
+
cast_to=ExtractBatchResponse,
|
|
2274
|
+
)
|
|
2275
|
+
|
|
2223
2276
|
def map(
|
|
2224
2277
|
self,
|
|
2225
2278
|
*,
|
|
@@ -5368,6 +5421,52 @@ class AsyncNimble(AsyncAPIClient):
|
|
|
5368
5421
|
cast_to=ExtractAsyncResponse,
|
|
5369
5422
|
)
|
|
5370
5423
|
|
|
5424
|
+
async def extract_batch(
|
|
5425
|
+
self,
|
|
5426
|
+
*,
|
|
5427
|
+
params: Iterable[client_extract_batch_params.Param],
|
|
5428
|
+
shared_params: client_extract_batch_params.SharedParams | Omit = omit,
|
|
5429
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
5430
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
5431
|
+
extra_headers: Headers | None = None,
|
|
5432
|
+
extra_query: Query | None = None,
|
|
5433
|
+
extra_body: Body | None = None,
|
|
5434
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
5435
|
+
) -> ExtractBatchResponse:
|
|
5436
|
+
"""Extract Batch Endpoint
|
|
5437
|
+
|
|
5438
|
+
Args:
|
|
5439
|
+
params: Array of extraction requests.
|
|
5440
|
+
|
|
5441
|
+
Each object represents one extraction with its own
|
|
5442
|
+
parameters.
|
|
5443
|
+
|
|
5444
|
+
shared_params: Shared parameters applied to the entire batch, such as storage and callback
|
|
5445
|
+
configuration.
|
|
5446
|
+
|
|
5447
|
+
extra_headers: Send extra headers
|
|
5448
|
+
|
|
5449
|
+
extra_query: Add additional query parameters to the request
|
|
5450
|
+
|
|
5451
|
+
extra_body: Add additional JSON properties to the request
|
|
5452
|
+
|
|
5453
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
5454
|
+
"""
|
|
5455
|
+
return await self.post(
|
|
5456
|
+
"/v1/extract/batch",
|
|
5457
|
+
body=await async_maybe_transform(
|
|
5458
|
+
{
|
|
5459
|
+
"params": params,
|
|
5460
|
+
"shared_params": shared_params,
|
|
5461
|
+
},
|
|
5462
|
+
client_extract_batch_params.ClientExtractBatchParams,
|
|
5463
|
+
),
|
|
5464
|
+
options=make_request_options(
|
|
5465
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
5466
|
+
),
|
|
5467
|
+
cast_to=ExtractBatchResponse,
|
|
5468
|
+
)
|
|
5469
|
+
|
|
5371
5470
|
async def map(
|
|
5372
5471
|
self,
|
|
5373
5472
|
*,
|
|
@@ -6369,6 +6468,9 @@ class NimbleWithRawResponse:
|
|
|
6369
6468
|
self.extract_async = to_raw_response_wrapper(
|
|
6370
6469
|
client.extract_async,
|
|
6371
6470
|
)
|
|
6471
|
+
self.extract_batch = to_raw_response_wrapper(
|
|
6472
|
+
client.extract_batch,
|
|
6473
|
+
)
|
|
6372
6474
|
self.map = to_raw_response_wrapper(
|
|
6373
6475
|
client.map,
|
|
6374
6476
|
)
|
|
@@ -6407,6 +6509,9 @@ class AsyncNimbleWithRawResponse:
|
|
|
6407
6509
|
self.extract_async = async_to_raw_response_wrapper(
|
|
6408
6510
|
client.extract_async,
|
|
6409
6511
|
)
|
|
6512
|
+
self.extract_batch = async_to_raw_response_wrapper(
|
|
6513
|
+
client.extract_batch,
|
|
6514
|
+
)
|
|
6410
6515
|
self.map = async_to_raw_response_wrapper(
|
|
6411
6516
|
client.map,
|
|
6412
6517
|
)
|
|
@@ -6445,6 +6550,9 @@ class NimbleWithStreamedResponse:
|
|
|
6445
6550
|
self.extract_async = to_streamed_response_wrapper(
|
|
6446
6551
|
client.extract_async,
|
|
6447
6552
|
)
|
|
6553
|
+
self.extract_batch = to_streamed_response_wrapper(
|
|
6554
|
+
client.extract_batch,
|
|
6555
|
+
)
|
|
6448
6556
|
self.map = to_streamed_response_wrapper(
|
|
6449
6557
|
client.map,
|
|
6450
6558
|
)
|
|
@@ -6483,6 +6591,9 @@ class AsyncNimbleWithStreamedResponse:
|
|
|
6483
6591
|
self.extract_async = async_to_streamed_response_wrapper(
|
|
6484
6592
|
client.extract_async,
|
|
6485
6593
|
)
|
|
6594
|
+
self.extract_batch = async_to_streamed_response_wrapper(
|
|
6595
|
+
client.extract_batch,
|
|
6596
|
+
)
|
|
6486
6597
|
self.map = async_to_streamed_response_wrapper(
|
|
6487
6598
|
client.map,
|
|
6488
6599
|
)
|
|
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from typing import TYPE_CHECKING, Any, Union, Generic, TypeVar, Callable, cast, overload
|
|
4
4
|
from datetime import date, datetime
|
|
5
|
-
from typing_extensions import Self, Literal
|
|
5
|
+
from typing_extensions import Self, Literal, TypedDict
|
|
6
6
|
|
|
7
7
|
import pydantic
|
|
8
8
|
from pydantic.fields import FieldInfo
|
|
@@ -131,6 +131,10 @@ def model_json(model: pydantic.BaseModel, *, indent: int | None = None) -> str:
|
|
|
131
131
|
return model.model_dump_json(indent=indent)
|
|
132
132
|
|
|
133
133
|
|
|
134
|
+
class _ModelDumpKwargs(TypedDict, total=False):
|
|
135
|
+
by_alias: bool
|
|
136
|
+
|
|
137
|
+
|
|
134
138
|
def model_dump(
|
|
135
139
|
model: pydantic.BaseModel,
|
|
136
140
|
*,
|
|
@@ -142,6 +146,9 @@ def model_dump(
|
|
|
142
146
|
by_alias: bool | None = None,
|
|
143
147
|
) -> dict[str, Any]:
|
|
144
148
|
if (not PYDANTIC_V1) or hasattr(model, "model_dump"):
|
|
149
|
+
kwargs: _ModelDumpKwargs = {}
|
|
150
|
+
if by_alias is not None:
|
|
151
|
+
kwargs["by_alias"] = by_alias
|
|
145
152
|
return model.model_dump(
|
|
146
153
|
mode=mode,
|
|
147
154
|
exclude=exclude,
|
|
@@ -149,7 +156,7 @@ def model_dump(
|
|
|
149
156
|
exclude_defaults=exclude_defaults,
|
|
150
157
|
# warnings are not supported in Pydantic v1
|
|
151
158
|
warnings=True if PYDANTIC_V1 else warnings,
|
|
152
|
-
|
|
159
|
+
**kwargs,
|
|
153
160
|
)
|
|
154
161
|
return cast(
|
|
155
162
|
"dict[str, Any]",
|
|
@@ -39,6 +39,8 @@ from .crawl_status_response import CrawlStatusResponse as CrawlStatusResponse
|
|
|
39
39
|
from .task_results_response import TaskResultsResponse as TaskResultsResponse
|
|
40
40
|
from .agent_run_async_params import AgentRunAsyncParams as AgentRunAsyncParams
|
|
41
41
|
from .extract_async_response import ExtractAsyncResponse as ExtractAsyncResponse
|
|
42
|
+
from .extract_batch_response import ExtractBatchResponse as ExtractBatchResponse
|
|
42
43
|
from .agent_run_async_response import AgentRunAsyncResponse as AgentRunAsyncResponse
|
|
43
44
|
from .crawl_terminate_response import CrawlTerminateResponse as CrawlTerminateResponse
|
|
44
45
|
from .client_extract_async_params import ClientExtractAsyncParams as ClientExtractAsyncParams
|
|
46
|
+
from .client_extract_batch_params import ClientExtractBatchParams as ClientExtractBatchParams
|