nimble_python 0.19.0__py3-none-any.whl → 0.20.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nimble_python/_client.py +42 -5
- nimble_python/_version.py +1 -1
- nimble_python/resources/__init__.py +14 -0
- nimble_python/resources/jobs/__init__.py +33 -0
- nimble_python/resources/jobs/jobs.py +691 -0
- nimble_python/resources/jobs/runs/__init__.py +33 -0
- nimble_python/resources/jobs/runs/artifacts.py +427 -0
- nimble_python/resources/jobs/runs/runs.py +389 -0
- nimble_python/resources/task_agent/task_agent.py +6 -2
- nimble_python/types/__init__.py +8 -0
- nimble_python/types/client_extract_async_params.py +1 -1
- nimble_python/types/client_extract_batch_params.py +10 -4
- nimble_python/types/client_extract_params.py +1 -1
- nimble_python/types/crawl_run_params.py +1 -1
- nimble_python/types/job_create_params.py +46 -0
- nimble_python/types/job_create_response.py +59 -0
- nimble_python/types/job_get_response.py +59 -0
- nimble_python/types/job_list_params.py +20 -0
- nimble_python/types/job_list_response.py +69 -0
- nimble_python/types/job_run_response.py +29 -0
- nimble_python/types/job_update_params.py +42 -0
- nimble_python/types/job_update_response.py +59 -0
- nimble_python/types/jobs/__init__.py +8 -0
- nimble_python/types/jobs/run_cancel_response.py +13 -0
- nimble_python/types/jobs/run_get_response.py +65 -0
- nimble_python/types/jobs/run_list_params.py +17 -0
- nimble_python/types/jobs/run_list_response.py +39 -0
- nimble_python/types/jobs/runs/__init__.py +8 -0
- nimble_python/types/jobs/runs/artifact_download_url_response.py +13 -0
- nimble_python/types/jobs/runs/artifact_get_response.py +17 -0
- nimble_python/types/jobs/runs/artifact_list_response.py +22 -0
- nimble_python/types/jobs/runs/artifact_preview_response.py +15 -0
- nimble_python/types/task_agent_create_params.py +21 -3
- nimble_python/types/task_agent_create_response.py +21 -3
- nimble_python/types/task_agent_get_response.py +21 -3
- nimble_python/types/task_agent_list_response.py +23 -3
- nimble_python/types/task_agent_run_params.py +32 -2
- nimble_python/types/task_agent_update_response.py +21 -3
- {nimble_python-0.19.0.dist-info → nimble_python-0.20.0.dist-info}/METADATA +1 -1
- {nimble_python-0.19.0.dist-info → nimble_python-0.20.0.dist-info}/RECORD +42 -19
- {nimble_python-0.19.0.dist-info → nimble_python-0.20.0.dist-info}/WHEEL +0 -0
- {nimble_python-0.19.0.dist-info → nimble_python-0.20.0.dist-info}/licenses/LICENSE +0 -0
nimble_python/_client.py
CHANGED
|
@@ -61,13 +61,14 @@ from .types.extract_async_response import ExtractAsyncResponse
|
|
|
61
61
|
from .types.extract_batch_response import ExtractBatchResponse
|
|
62
62
|
|
|
63
63
|
if TYPE_CHECKING:
|
|
64
|
-
from .resources import serp, agent, crawl, media, tasks, batches, task_agent, domain_knowledge
|
|
64
|
+
from .resources import jobs, serp, agent, crawl, media, tasks, batches, task_agent, domain_knowledge
|
|
65
65
|
from .resources.serp import SerpResource, AsyncSerpResource
|
|
66
66
|
from .resources.agent import AgentResource, AsyncAgentResource
|
|
67
67
|
from .resources.crawl import CrawlResource, AsyncCrawlResource
|
|
68
68
|
from .resources.media import MediaResource, AsyncMediaResource
|
|
69
69
|
from .resources.tasks import TasksResource, AsyncTasksResource
|
|
70
70
|
from .resources.batches import BatchesResource, AsyncBatchesResource
|
|
71
|
+
from .resources.jobs.jobs import JobsResource, AsyncJobsResource
|
|
71
72
|
from .resources.domain_knowledge import DomainKnowledgeResource, AsyncDomainKnowledgeResource
|
|
72
73
|
from .resources.task_agent.task_agent import TaskAgentResource, AsyncTaskAgentResource
|
|
73
74
|
|
|
@@ -190,6 +191,12 @@ class Nimble(SyncAPIClient):
|
|
|
190
191
|
|
|
191
192
|
return TaskAgentResource(self)
|
|
192
193
|
|
|
194
|
+
@cached_property
|
|
195
|
+
def jobs(self) -> JobsResource:
|
|
196
|
+
from .resources.jobs import JobsResource
|
|
197
|
+
|
|
198
|
+
return JobsResource(self)
|
|
199
|
+
|
|
193
200
|
@cached_property
|
|
194
201
|
def with_raw_response(self) -> NimbleWithRawResponse:
|
|
195
202
|
return NimbleWithRawResponse(self)
|
|
@@ -1100,7 +1107,7 @@ class Nimble(SyncAPIClient):
|
|
|
1100
1107
|
"random", "no-referer", "same-origin", "google", "bing", "facebook", "twitter", "instagram"
|
|
1101
1108
|
]
|
|
1102
1109
|
| Omit = omit,
|
|
1103
|
-
render: bool | Omit = omit,
|
|
1110
|
+
render: Union[bool, Literal["auto"]] | Omit = omit,
|
|
1104
1111
|
request_timeout: float | Omit = omit,
|
|
1105
1112
|
session: client_extract_params.Session | Omit = omit,
|
|
1106
1113
|
skill: Union[str, SequenceNotStr[str]] | Omit = omit,
|
|
@@ -2101,7 +2108,7 @@ class Nimble(SyncAPIClient):
|
|
|
2101
2108
|
"random", "no-referer", "same-origin", "google", "bing", "facebook", "twitter", "instagram"
|
|
2102
2109
|
]
|
|
2103
2110
|
| Omit = omit,
|
|
2104
|
-
render: bool | Omit = omit,
|
|
2111
|
+
render: Union[bool, Literal["auto"]] | Omit = omit,
|
|
2105
2112
|
request_timeout: float | Omit = omit,
|
|
2106
2113
|
session: client_extract_async_params.Session | Omit = omit,
|
|
2107
2114
|
skill: Union[str, SequenceNotStr[str]] | Omit = omit,
|
|
@@ -3458,6 +3465,12 @@ class AsyncNimble(AsyncAPIClient):
|
|
|
3458
3465
|
|
|
3459
3466
|
return AsyncTaskAgentResource(self)
|
|
3460
3467
|
|
|
3468
|
+
@cached_property
|
|
3469
|
+
def jobs(self) -> AsyncJobsResource:
|
|
3470
|
+
from .resources.jobs import AsyncJobsResource
|
|
3471
|
+
|
|
3472
|
+
return AsyncJobsResource(self)
|
|
3473
|
+
|
|
3461
3474
|
@cached_property
|
|
3462
3475
|
def with_raw_response(self) -> AsyncNimbleWithRawResponse:
|
|
3463
3476
|
return AsyncNimbleWithRawResponse(self)
|
|
@@ -4368,7 +4381,7 @@ class AsyncNimble(AsyncAPIClient):
|
|
|
4368
4381
|
"random", "no-referer", "same-origin", "google", "bing", "facebook", "twitter", "instagram"
|
|
4369
4382
|
]
|
|
4370
4383
|
| Omit = omit,
|
|
4371
|
-
render: bool | Omit = omit,
|
|
4384
|
+
render: Union[bool, Literal["auto"]] | Omit = omit,
|
|
4372
4385
|
request_timeout: float | Omit = omit,
|
|
4373
4386
|
session: client_extract_params.Session | Omit = omit,
|
|
4374
4387
|
skill: Union[str, SequenceNotStr[str]] | Omit = omit,
|
|
@@ -5369,7 +5382,7 @@ class AsyncNimble(AsyncAPIClient):
|
|
|
5369
5382
|
"random", "no-referer", "same-origin", "google", "bing", "facebook", "twitter", "instagram"
|
|
5370
5383
|
]
|
|
5371
5384
|
| Omit = omit,
|
|
5372
|
-
render: bool | Omit = omit,
|
|
5385
|
+
render: Union[bool, Literal["auto"]] | Omit = omit,
|
|
5373
5386
|
request_timeout: float | Omit = omit,
|
|
5374
5387
|
session: client_extract_async_params.Session | Omit = omit,
|
|
5375
5388
|
skill: Union[str, SequenceNotStr[str]] | Omit = omit,
|
|
@@ -6680,6 +6693,12 @@ class NimbleWithRawResponse:
|
|
|
6680
6693
|
|
|
6681
6694
|
return TaskAgentResourceWithRawResponse(self._client.task_agent)
|
|
6682
6695
|
|
|
6696
|
+
@cached_property
|
|
6697
|
+
def jobs(self) -> jobs.JobsResourceWithRawResponse:
|
|
6698
|
+
from .resources.jobs import JobsResourceWithRawResponse
|
|
6699
|
+
|
|
6700
|
+
return JobsResourceWithRawResponse(self._client.jobs)
|
|
6701
|
+
|
|
6683
6702
|
|
|
6684
6703
|
class AsyncNimbleWithRawResponse:
|
|
6685
6704
|
_client: AsyncNimble
|
|
@@ -6751,6 +6770,12 @@ class AsyncNimbleWithRawResponse:
|
|
|
6751
6770
|
|
|
6752
6771
|
return AsyncTaskAgentResourceWithRawResponse(self._client.task_agent)
|
|
6753
6772
|
|
|
6773
|
+
@cached_property
|
|
6774
|
+
def jobs(self) -> jobs.AsyncJobsResourceWithRawResponse:
|
|
6775
|
+
from .resources.jobs import AsyncJobsResourceWithRawResponse
|
|
6776
|
+
|
|
6777
|
+
return AsyncJobsResourceWithRawResponse(self._client.jobs)
|
|
6778
|
+
|
|
6754
6779
|
|
|
6755
6780
|
class NimbleWithStreamedResponse:
|
|
6756
6781
|
_client: Nimble
|
|
@@ -6822,6 +6847,12 @@ class NimbleWithStreamedResponse:
|
|
|
6822
6847
|
|
|
6823
6848
|
return TaskAgentResourceWithStreamingResponse(self._client.task_agent)
|
|
6824
6849
|
|
|
6850
|
+
@cached_property
|
|
6851
|
+
def jobs(self) -> jobs.JobsResourceWithStreamingResponse:
|
|
6852
|
+
from .resources.jobs import JobsResourceWithStreamingResponse
|
|
6853
|
+
|
|
6854
|
+
return JobsResourceWithStreamingResponse(self._client.jobs)
|
|
6855
|
+
|
|
6825
6856
|
|
|
6826
6857
|
class AsyncNimbleWithStreamedResponse:
|
|
6827
6858
|
_client: AsyncNimble
|
|
@@ -6893,6 +6924,12 @@ class AsyncNimbleWithStreamedResponse:
|
|
|
6893
6924
|
|
|
6894
6925
|
return AsyncTaskAgentResourceWithStreamingResponse(self._client.task_agent)
|
|
6895
6926
|
|
|
6927
|
+
@cached_property
|
|
6928
|
+
def jobs(self) -> jobs.AsyncJobsResourceWithStreamingResponse:
|
|
6929
|
+
from .resources.jobs import AsyncJobsResourceWithStreamingResponse
|
|
6930
|
+
|
|
6931
|
+
return AsyncJobsResourceWithStreamingResponse(self._client.jobs)
|
|
6932
|
+
|
|
6896
6933
|
|
|
6897
6934
|
Client = Nimble
|
|
6898
6935
|
|
nimble_python/_version.py
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
from .jobs import (
|
|
4
|
+
JobsResource,
|
|
5
|
+
AsyncJobsResource,
|
|
6
|
+
JobsResourceWithRawResponse,
|
|
7
|
+
AsyncJobsResourceWithRawResponse,
|
|
8
|
+
JobsResourceWithStreamingResponse,
|
|
9
|
+
AsyncJobsResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
3
11
|
from .serp import (
|
|
4
12
|
SerpResource,
|
|
5
13
|
AsyncSerpResource,
|
|
@@ -114,4 +122,10 @@ __all__ = [
|
|
|
114
122
|
"AsyncTaskAgentResourceWithRawResponse",
|
|
115
123
|
"TaskAgentResourceWithStreamingResponse",
|
|
116
124
|
"AsyncTaskAgentResourceWithStreamingResponse",
|
|
125
|
+
"JobsResource",
|
|
126
|
+
"AsyncJobsResource",
|
|
127
|
+
"JobsResourceWithRawResponse",
|
|
128
|
+
"AsyncJobsResourceWithRawResponse",
|
|
129
|
+
"JobsResourceWithStreamingResponse",
|
|
130
|
+
"AsyncJobsResourceWithStreamingResponse",
|
|
117
131
|
]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .jobs import (
|
|
4
|
+
JobsResource,
|
|
5
|
+
AsyncJobsResource,
|
|
6
|
+
JobsResourceWithRawResponse,
|
|
7
|
+
AsyncJobsResourceWithRawResponse,
|
|
8
|
+
JobsResourceWithStreamingResponse,
|
|
9
|
+
AsyncJobsResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .runs import (
|
|
12
|
+
RunsResource,
|
|
13
|
+
AsyncRunsResource,
|
|
14
|
+
RunsResourceWithRawResponse,
|
|
15
|
+
AsyncRunsResourceWithRawResponse,
|
|
16
|
+
RunsResourceWithStreamingResponse,
|
|
17
|
+
AsyncRunsResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"RunsResource",
|
|
22
|
+
"AsyncRunsResource",
|
|
23
|
+
"RunsResourceWithRawResponse",
|
|
24
|
+
"AsyncRunsResourceWithRawResponse",
|
|
25
|
+
"RunsResourceWithStreamingResponse",
|
|
26
|
+
"AsyncRunsResourceWithStreamingResponse",
|
|
27
|
+
"JobsResource",
|
|
28
|
+
"AsyncJobsResource",
|
|
29
|
+
"JobsResourceWithRawResponse",
|
|
30
|
+
"AsyncJobsResourceWithRawResponse",
|
|
31
|
+
"JobsResourceWithStreamingResponse",
|
|
32
|
+
"AsyncJobsResourceWithStreamingResponse",
|
|
33
|
+
]
|