nimble_python 0.22.0__tar.gz → 0.23.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.23.0/.release-please-manifest.json +3 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/CHANGELOG.md +9 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/PKG-INFO +1 -1
- {nimble_python-0.22.0 → nimble_python-0.23.0}/api.md +12 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/pyproject.toml +1 -1
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_client.py +38 -1
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_version.py +1 -1
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/__init__.py +14 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/agent.py +4 -4
- nimble_python-0.23.0/src/nimble_python/resources/fast_serp.py +293 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/jobs/jobs.py +8 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/task_agent/runs.py +53 -21
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/task_agent/task_agent.py +72 -38
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/task_agent/templates.py +17 -12
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/__init__.py +2 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/agent_generate_params.py +8 -8
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/client_extract_async_params.py +2 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/client_extract_batch_params.py +4 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/client_extract_params.py +2 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/crawl_run_params.py +2 -0
- nimble_python-0.23.0/src/nimble_python/types/fast_serp_run_params.py +64 -0
- nimble_python-0.23.0/src/nimble_python/types/fast_serp_run_response.py +339 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/job_create_params.py +1 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/job_create_response.py +1 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/job_get_response.py +1 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/job_list_response.py +1 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/job_update_params.py +1 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/job_update_response.py +1 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/jobs/runs/artifact_get_response.py +1 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/jobs/runs/artifact_list_response.py +1 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_agent/run_get_response.py +20 -5
- nimble_python-0.23.0/src/nimble_python/types/task_agent/run_get_result_response.py +382 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_agent/run_list_params.py +5 -0
- nimble_python-0.23.0/src/nimble_python/types/task_agent/run_list_response.py +74 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_agent/template_get_response.py +2 -1
- nimble_python-0.23.0/src/nimble_python/types/task_agent/template_list_params.py +19 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_agent/template_list_response.py +2 -1
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_agent_create_params.py +7 -3
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_agent_create_response.py +9 -5
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_agent_get_response.py +9 -5
- nimble_python-0.23.0/src/nimble_python/types/task_agent_list_params.py +21 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_agent_list_response.py +9 -5
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_agent_run_params.py +9 -1
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_agent_run_response.py +20 -5
- nimble_python-0.23.0/src/nimble_python/types/task_agent_update_params.py +32 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_agent_update_response.py +9 -5
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/task_agent/test_runs.py +46 -42
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/task_agent/test_templates.py +6 -6
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/test_client.py +8 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/test_crawl.py +2 -0
- nimble_python-0.23.0/tests/api_resources/test_fast_serp.py +130 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/test_task_agent.py +48 -50
- nimble_python-0.22.0/.release-please-manifest.json +0 -3
- nimble_python-0.22.0/src/nimble_python/types/task_agent/run_get_result_response.py +0 -254
- nimble_python-0.22.0/src/nimble_python/types/task_agent/run_list_response.py +0 -50
- nimble_python-0.22.0/src/nimble_python/types/task_agent/template_list_params.py +0 -18
- nimble_python-0.22.0/src/nimble_python/types/task_agent_list_params.py +0 -18
- nimble_python-0.22.0/src/nimble_python/types/task_agent_update_params.py +0 -20
- {nimble_python-0.22.0 → nimble_python-0.23.0}/.gitignore +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/CONTRIBUTING.md +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/LICENSE +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/README.md +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/SECURITY.md +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/bin/check-release-environment +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/bin/publish-pypi +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/examples/.keep +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/release-please-config.json +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/requirements-dev.lock +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_base_client.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_compat.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_constants.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_exceptions.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_files.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_models.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_qs.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_resource.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_streaming.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_types.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_compat.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_datetime_parse.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_json.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_logs.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_path.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_proxy.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_reflection.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_resources_proxy.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_streams.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_sync.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_transform.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_typing.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/_utils/_utils.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/lib/.keep +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/py.typed +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/batches.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/crawl.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/domain_knowledge.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/jobs/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/jobs/runs/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/jobs/runs/artifacts.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/jobs/runs/runs.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/media.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/serp.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/task_agent/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/resources/tasks.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/agent_generate_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/agent_get_generation_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/agent_get_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/agent_list_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/agent_list_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/agent_run_async_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/agent_run_async_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/agent_run_batch_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/agent_run_batch_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/agent_run_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/agent_run_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/batch_get_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/batch_progress_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/client_map_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/client_search_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/crawl_list_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/crawl_list_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/crawl_run_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/crawl_status_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/crawl_terminate_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/domain_knowledge_get_driver_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/domain_knowledge_get_driver_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/extract_async_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/extract_batch_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/extract_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/job_list_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/job_run_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/jobs/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/jobs/run_cancel_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/jobs/run_get_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/jobs/run_list_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/jobs/run_list_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/jobs/runs/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/jobs/runs/artifact_download_url_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/jobs/runs/artifact_preview_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/map_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/media_run_async_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/media_run_async_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/media_run_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/media_run_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/search_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/serp_run_async_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/serp_run_async_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/serp_run_batch_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/serp_run_batch_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/serp_run_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/serp_run_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/auto_scroll_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/click_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/eval_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/fetch_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/fill_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/get_cookies_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/goto_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/press_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/screenshot_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/scroll_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/wait_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/wait_for_element_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared/wait_for_navigation_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/auto_scroll_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/click_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/eval_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/fetch_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/fill_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/get_cookies_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/goto_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/press_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/screenshot_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/scroll_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/wait_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/wait_for_element_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/shared_params/wait_for_navigation_action.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_agent/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_get_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_list_params.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_list_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimble_python/types/task_results_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/src/nimbleway/lib/.keep +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/jobs/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/jobs/runs/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/jobs/runs/test_artifacts.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/jobs/test_runs.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/task_agent/__init__.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/test_agent.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/test_batches.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/test_domain_knowledge.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/test_jobs.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/test_media.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/test_serp.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/api_resources/test_tasks.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/conftest.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/sample_file.txt +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_client.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_extract_files.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_files.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_models.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_qs.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_required_args.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_response.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_streaming.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_transform.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_utils/test_json.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_utils/test_path.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_utils/test_proxy.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/test_utils/test_typing.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/tests/utils.py +0 -0
- {nimble_python-0.22.0 → nimble_python-0.23.0}/uv.lock +0 -0
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.23.0 (2026-07-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.22.0...v0.23.0](https://github.com/Nimbleway/nimble-python/compare/v0.22.0...v0.23.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([a1e3f26](https://github.com/Nimbleway/nimble-python/commit/a1e3f264c89f0a534be69714d3af67b73c1b740c))
|
|
10
|
+
* **api:** api update ([082bc09](https://github.com/Nimbleway/nimble-python/commit/082bc099c7c2b53c0df4c6336ea489cdb1a0fe3c))
|
|
11
|
+
|
|
3
12
|
## 0.22.0 (2026-07-07)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v0.21.0...v0.22.0](https://github.com/Nimbleway/nimble-python/compare/v0.21.0...v0.22.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: nimble_python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.23.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
|
|
@@ -153,6 +153,18 @@ Methods:
|
|
|
153
153
|
- <code title="post /v1/serp/async">client.serp.<a href="./src/nimble_python/resources/serp.py">run_async</a>(\*\*<a href="src/nimble_python/types/serp_run_async_params.py">params</a>) -> <a href="./src/nimble_python/types/serp_run_async_response.py">SerpRunAsyncResponse</a></code>
|
|
154
154
|
- <code title="post /v1/serp/batch">client.serp.<a href="./src/nimble_python/resources/serp.py">run_batch</a>(\*\*<a href="src/nimble_python/types/serp_run_batch_params.py">params</a>) -> <a href="./src/nimble_python/types/serp_run_batch_response.py">SerpRunBatchResponse</a></code>
|
|
155
155
|
|
|
156
|
+
# FastSerp
|
|
157
|
+
|
|
158
|
+
Types:
|
|
159
|
+
|
|
160
|
+
```python
|
|
161
|
+
from nimble_python.types import FastSerpRunResponse
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Methods:
|
|
165
|
+
|
|
166
|
+
- <code title="post /v1/fast-serp">client.fast_serp.<a href="./src/nimble_python/resources/fast_serp.py">run</a>(\*\*<a href="src/nimble_python/types/fast_serp_run_params.py">params</a>) -> <a href="./src/nimble_python/types/fast_serp_run_response.py">FastSerpRunResponse</a></code>
|
|
167
|
+
|
|
156
168
|
# TaskAgent
|
|
157
169
|
|
|
158
170
|
Types:
|
|
@@ -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 jobs, serp, agent, crawl, media, tasks, batches, task_agent, domain_knowledge
|
|
64
|
+
from .resources import jobs, serp, agent, crawl, media, tasks, batches, fast_serp, 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.fast_serp import FastSerpResource, AsyncFastSerpResource
|
|
71
72
|
from .resources.jobs.jobs import JobsResource, AsyncJobsResource
|
|
72
73
|
from .resources.domain_knowledge import DomainKnowledgeResource, AsyncDomainKnowledgeResource
|
|
73
74
|
from .resources.task_agent.task_agent import TaskAgentResource, AsyncTaskAgentResource
|
|
@@ -185,6 +186,12 @@ class Nimble(SyncAPIClient):
|
|
|
185
186
|
|
|
186
187
|
return SerpResource(self)
|
|
187
188
|
|
|
189
|
+
@cached_property
|
|
190
|
+
def fast_serp(self) -> FastSerpResource:
|
|
191
|
+
from .resources.fast_serp import FastSerpResource
|
|
192
|
+
|
|
193
|
+
return FastSerpResource(self)
|
|
194
|
+
|
|
188
195
|
@cached_property
|
|
189
196
|
def task_agent(self) -> TaskAgentResource:
|
|
190
197
|
from .resources.task_agent import TaskAgentResource
|
|
@@ -3479,6 +3486,12 @@ class AsyncNimble(AsyncAPIClient):
|
|
|
3479
3486
|
|
|
3480
3487
|
return AsyncSerpResource(self)
|
|
3481
3488
|
|
|
3489
|
+
@cached_property
|
|
3490
|
+
def fast_serp(self) -> AsyncFastSerpResource:
|
|
3491
|
+
from .resources.fast_serp import AsyncFastSerpResource
|
|
3492
|
+
|
|
3493
|
+
return AsyncFastSerpResource(self)
|
|
3494
|
+
|
|
3482
3495
|
@cached_property
|
|
3483
3496
|
def task_agent(self) -> AsyncTaskAgentResource:
|
|
3484
3497
|
from .resources.task_agent import AsyncTaskAgentResource
|
|
@@ -6727,6 +6740,12 @@ class NimbleWithRawResponse:
|
|
|
6727
6740
|
|
|
6728
6741
|
return SerpResourceWithRawResponse(self._client.serp)
|
|
6729
6742
|
|
|
6743
|
+
@cached_property
|
|
6744
|
+
def fast_serp(self) -> fast_serp.FastSerpResourceWithRawResponse:
|
|
6745
|
+
from .resources.fast_serp import FastSerpResourceWithRawResponse
|
|
6746
|
+
|
|
6747
|
+
return FastSerpResourceWithRawResponse(self._client.fast_serp)
|
|
6748
|
+
|
|
6730
6749
|
@cached_property
|
|
6731
6750
|
def task_agent(self) -> task_agent.TaskAgentResourceWithRawResponse:
|
|
6732
6751
|
from .resources.task_agent import TaskAgentResourceWithRawResponse
|
|
@@ -6804,6 +6823,12 @@ class AsyncNimbleWithRawResponse:
|
|
|
6804
6823
|
|
|
6805
6824
|
return AsyncSerpResourceWithRawResponse(self._client.serp)
|
|
6806
6825
|
|
|
6826
|
+
@cached_property
|
|
6827
|
+
def fast_serp(self) -> fast_serp.AsyncFastSerpResourceWithRawResponse:
|
|
6828
|
+
from .resources.fast_serp import AsyncFastSerpResourceWithRawResponse
|
|
6829
|
+
|
|
6830
|
+
return AsyncFastSerpResourceWithRawResponse(self._client.fast_serp)
|
|
6831
|
+
|
|
6807
6832
|
@cached_property
|
|
6808
6833
|
def task_agent(self) -> task_agent.AsyncTaskAgentResourceWithRawResponse:
|
|
6809
6834
|
from .resources.task_agent import AsyncTaskAgentResourceWithRawResponse
|
|
@@ -6881,6 +6906,12 @@ class NimbleWithStreamedResponse:
|
|
|
6881
6906
|
|
|
6882
6907
|
return SerpResourceWithStreamingResponse(self._client.serp)
|
|
6883
6908
|
|
|
6909
|
+
@cached_property
|
|
6910
|
+
def fast_serp(self) -> fast_serp.FastSerpResourceWithStreamingResponse:
|
|
6911
|
+
from .resources.fast_serp import FastSerpResourceWithStreamingResponse
|
|
6912
|
+
|
|
6913
|
+
return FastSerpResourceWithStreamingResponse(self._client.fast_serp)
|
|
6914
|
+
|
|
6884
6915
|
@cached_property
|
|
6885
6916
|
def task_agent(self) -> task_agent.TaskAgentResourceWithStreamingResponse:
|
|
6886
6917
|
from .resources.task_agent import TaskAgentResourceWithStreamingResponse
|
|
@@ -6958,6 +6989,12 @@ class AsyncNimbleWithStreamedResponse:
|
|
|
6958
6989
|
|
|
6959
6990
|
return AsyncSerpResourceWithStreamingResponse(self._client.serp)
|
|
6960
6991
|
|
|
6992
|
+
@cached_property
|
|
6993
|
+
def fast_serp(self) -> fast_serp.AsyncFastSerpResourceWithStreamingResponse:
|
|
6994
|
+
from .resources.fast_serp import AsyncFastSerpResourceWithStreamingResponse
|
|
6995
|
+
|
|
6996
|
+
return AsyncFastSerpResourceWithStreamingResponse(self._client.fast_serp)
|
|
6997
|
+
|
|
6961
6998
|
@cached_property
|
|
6962
6999
|
def task_agent(self) -> task_agent.AsyncTaskAgentResourceWithStreamingResponse:
|
|
6963
7000
|
from .resources.task_agent import AsyncTaskAgentResourceWithStreamingResponse
|
|
@@ -56,6 +56,14 @@ from .batches import (
|
|
|
56
56
|
BatchesResourceWithStreamingResponse,
|
|
57
57
|
AsyncBatchesResourceWithStreamingResponse,
|
|
58
58
|
)
|
|
59
|
+
from .fast_serp import (
|
|
60
|
+
FastSerpResource,
|
|
61
|
+
AsyncFastSerpResource,
|
|
62
|
+
FastSerpResourceWithRawResponse,
|
|
63
|
+
AsyncFastSerpResourceWithRawResponse,
|
|
64
|
+
FastSerpResourceWithStreamingResponse,
|
|
65
|
+
AsyncFastSerpResourceWithStreamingResponse,
|
|
66
|
+
)
|
|
59
67
|
from .task_agent import (
|
|
60
68
|
TaskAgentResource,
|
|
61
69
|
AsyncTaskAgentResource,
|
|
@@ -116,6 +124,12 @@ __all__ = [
|
|
|
116
124
|
"AsyncSerpResourceWithRawResponse",
|
|
117
125
|
"SerpResourceWithStreamingResponse",
|
|
118
126
|
"AsyncSerpResourceWithStreamingResponse",
|
|
127
|
+
"FastSerpResource",
|
|
128
|
+
"AsyncFastSerpResource",
|
|
129
|
+
"FastSerpResourceWithRawResponse",
|
|
130
|
+
"AsyncFastSerpResourceWithRawResponse",
|
|
131
|
+
"FastSerpResourceWithStreamingResponse",
|
|
132
|
+
"AsyncFastSerpResourceWithStreamingResponse",
|
|
119
133
|
"TaskAgentResource",
|
|
120
134
|
"AsyncTaskAgentResource",
|
|
121
135
|
"TaskAgentResourceWithRawResponse",
|
|
@@ -121,7 +121,7 @@ class AgentResource(SyncAPIResource):
|
|
|
121
121
|
prompt: str,
|
|
122
122
|
url: str,
|
|
123
123
|
input_schema: Dict[str, object] | Omit = omit,
|
|
124
|
-
metadata: Optional[agent_generate_params.
|
|
124
|
+
metadata: Optional[agent_generate_params.CrustCreateAgentGenerationRequestMetadata] | Omit = omit,
|
|
125
125
|
name: Optional[str] | Omit = omit,
|
|
126
126
|
output_schema: Dict[str, object] | Omit = omit,
|
|
127
127
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -179,7 +179,7 @@ class AgentResource(SyncAPIResource):
|
|
|
179
179
|
prompt: str,
|
|
180
180
|
url: str | Omit = omit,
|
|
181
181
|
input_schema: Dict[str, object] | Omit = omit,
|
|
182
|
-
metadata: Optional[agent_generate_params.
|
|
182
|
+
metadata: Optional[agent_generate_params.CrustCreateAgentGenerationRequestMetadata] | Omit = omit,
|
|
183
183
|
name: Optional[str] | Omit = omit,
|
|
184
184
|
output_schema: Dict[str, object] | Omit = omit,
|
|
185
185
|
from_agent: str | Omit = omit,
|
|
@@ -512,7 +512,7 @@ class AsyncAgentResource(AsyncAPIResource):
|
|
|
512
512
|
prompt: str,
|
|
513
513
|
url: str,
|
|
514
514
|
input_schema: Dict[str, object] | Omit = omit,
|
|
515
|
-
metadata: Optional[agent_generate_params.
|
|
515
|
+
metadata: Optional[agent_generate_params.CrustCreateAgentGenerationRequestMetadata] | Omit = omit,
|
|
516
516
|
name: Optional[str] | Omit = omit,
|
|
517
517
|
output_schema: Dict[str, object] | Omit = omit,
|
|
518
518
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -570,7 +570,7 @@ class AsyncAgentResource(AsyncAPIResource):
|
|
|
570
570
|
prompt: str,
|
|
571
571
|
url: str | Omit = omit,
|
|
572
572
|
input_schema: Dict[str, object] | Omit = omit,
|
|
573
|
-
metadata: Optional[agent_generate_params.
|
|
573
|
+
metadata: Optional[agent_generate_params.CrustCreateAgentGenerationRequestMetadata] | Omit = omit,
|
|
574
574
|
name: Optional[str] | Omit = omit,
|
|
575
575
|
output_schema: Dict[str, object] | Omit = omit,
|
|
576
576
|
from_agent: str | Omit = omit,
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
import httpx
|
|
8
|
+
|
|
9
|
+
from ..types import fast_serp_run_params
|
|
10
|
+
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
11
|
+
from .._utils import maybe_transform, async_maybe_transform
|
|
12
|
+
from .._compat import cached_property
|
|
13
|
+
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
14
|
+
from .._response import (
|
|
15
|
+
to_raw_response_wrapper,
|
|
16
|
+
to_streamed_response_wrapper,
|
|
17
|
+
async_to_raw_response_wrapper,
|
|
18
|
+
async_to_streamed_response_wrapper,
|
|
19
|
+
)
|
|
20
|
+
from .._base_client import make_request_options
|
|
21
|
+
from ..types.fast_serp_run_response import FastSerpRunResponse
|
|
22
|
+
|
|
23
|
+
__all__ = ["FastSerpResource", "AsyncFastSerpResource"]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class FastSerpResource(SyncAPIResource):
|
|
27
|
+
@cached_property
|
|
28
|
+
def with_raw_response(self) -> FastSerpResourceWithRawResponse:
|
|
29
|
+
"""
|
|
30
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
31
|
+
the raw response object instead of the parsed content.
|
|
32
|
+
|
|
33
|
+
For more information, see https://www.github.com/Nimbleway/nimble-python#accessing-raw-response-data-eg-headers
|
|
34
|
+
"""
|
|
35
|
+
return FastSerpResourceWithRawResponse(self)
|
|
36
|
+
|
|
37
|
+
@cached_property
|
|
38
|
+
def with_streaming_response(self) -> FastSerpResourceWithStreamingResponse:
|
|
39
|
+
"""
|
|
40
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
41
|
+
|
|
42
|
+
For more information, see https://www.github.com/Nimbleway/nimble-python#with_streaming_response
|
|
43
|
+
"""
|
|
44
|
+
return FastSerpResourceWithStreamingResponse(self)
|
|
45
|
+
|
|
46
|
+
def run(
|
|
47
|
+
self,
|
|
48
|
+
*,
|
|
49
|
+
search_engine: Literal[
|
|
50
|
+
"google_search",
|
|
51
|
+
"google_sge",
|
|
52
|
+
"google_aio",
|
|
53
|
+
"google_maps_search",
|
|
54
|
+
"google_maps_reviews",
|
|
55
|
+
"google_maps_place",
|
|
56
|
+
"google_news",
|
|
57
|
+
"google_images",
|
|
58
|
+
"bing_search",
|
|
59
|
+
"yandex_search",
|
|
60
|
+
],
|
|
61
|
+
country: str | Omit = omit,
|
|
62
|
+
device: Literal["desktop", "mobile"] | Omit = omit,
|
|
63
|
+
domain: str | Omit = omit,
|
|
64
|
+
locale: str | Omit = omit,
|
|
65
|
+
location: str | Omit = omit,
|
|
66
|
+
num_results: int | Omit = omit,
|
|
67
|
+
page: int | Omit = omit,
|
|
68
|
+
parse: bool | Omit = omit,
|
|
69
|
+
query: str | Omit = omit,
|
|
70
|
+
render: bool | Omit = omit,
|
|
71
|
+
show_hidden_results: bool | Omit = omit,
|
|
72
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
73
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
74
|
+
extra_headers: Headers | None = None,
|
|
75
|
+
extra_query: Query | None = None,
|
|
76
|
+
extra_body: Body | None = None,
|
|
77
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
78
|
+
) -> FastSerpRunResponse:
|
|
79
|
+
"""
|
|
80
|
+
Fast SERP
|
|
81
|
+
|
|
82
|
+
Args:
|
|
83
|
+
search_engine: The search engine to query.
|
|
84
|
+
|
|
85
|
+
country: ISO Alpha-2 country code used to access the target search engine (e.g. US, DE,
|
|
86
|
+
GB).
|
|
87
|
+
|
|
88
|
+
device: Device type used for the search request.
|
|
89
|
+
|
|
90
|
+
domain: Top-level domain for the search engine (e.g. "com", "co.uk", "de").
|
|
91
|
+
|
|
92
|
+
locale: Locale used for the search request.
|
|
93
|
+
|
|
94
|
+
location: Geo-location for the search (canonical Google location name).
|
|
95
|
+
|
|
96
|
+
num_results: Number of results to return (1–100).
|
|
97
|
+
|
|
98
|
+
page: The result page number for pagination.
|
|
99
|
+
|
|
100
|
+
parse: When true, the SERP response is parsed into structured JSON.
|
|
101
|
+
|
|
102
|
+
query: The search keyword or phrase to query.
|
|
103
|
+
|
|
104
|
+
render: Whether to render the page in a browser before extracting.
|
|
105
|
+
|
|
106
|
+
show_hidden_results: When true, disables Google result filtering (filter=0) so omitted/duplicate and
|
|
107
|
+
highly similar pages are also returned. Applies to Google search engines.
|
|
108
|
+
|
|
109
|
+
extra_headers: Send extra headers
|
|
110
|
+
|
|
111
|
+
extra_query: Add additional query parameters to the request
|
|
112
|
+
|
|
113
|
+
extra_body: Add additional JSON properties to the request
|
|
114
|
+
|
|
115
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
116
|
+
"""
|
|
117
|
+
return self._post(
|
|
118
|
+
"/v1/fast-serp",
|
|
119
|
+
body=maybe_transform(
|
|
120
|
+
{
|
|
121
|
+
"search_engine": search_engine,
|
|
122
|
+
"country": country,
|
|
123
|
+
"device": device,
|
|
124
|
+
"domain": domain,
|
|
125
|
+
"locale": locale,
|
|
126
|
+
"location": location,
|
|
127
|
+
"num_results": num_results,
|
|
128
|
+
"page": page,
|
|
129
|
+
"parse": parse,
|
|
130
|
+
"query": query,
|
|
131
|
+
"render": render,
|
|
132
|
+
"show_hidden_results": show_hidden_results,
|
|
133
|
+
},
|
|
134
|
+
fast_serp_run_params.FastSerpRunParams,
|
|
135
|
+
),
|
|
136
|
+
options=make_request_options(
|
|
137
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
138
|
+
),
|
|
139
|
+
cast_to=FastSerpRunResponse,
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
class AsyncFastSerpResource(AsyncAPIResource):
|
|
144
|
+
@cached_property
|
|
145
|
+
def with_raw_response(self) -> AsyncFastSerpResourceWithRawResponse:
|
|
146
|
+
"""
|
|
147
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
148
|
+
the raw response object instead of the parsed content.
|
|
149
|
+
|
|
150
|
+
For more information, see https://www.github.com/Nimbleway/nimble-python#accessing-raw-response-data-eg-headers
|
|
151
|
+
"""
|
|
152
|
+
return AsyncFastSerpResourceWithRawResponse(self)
|
|
153
|
+
|
|
154
|
+
@cached_property
|
|
155
|
+
def with_streaming_response(self) -> AsyncFastSerpResourceWithStreamingResponse:
|
|
156
|
+
"""
|
|
157
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
158
|
+
|
|
159
|
+
For more information, see https://www.github.com/Nimbleway/nimble-python#with_streaming_response
|
|
160
|
+
"""
|
|
161
|
+
return AsyncFastSerpResourceWithStreamingResponse(self)
|
|
162
|
+
|
|
163
|
+
async def run(
|
|
164
|
+
self,
|
|
165
|
+
*,
|
|
166
|
+
search_engine: Literal[
|
|
167
|
+
"google_search",
|
|
168
|
+
"google_sge",
|
|
169
|
+
"google_aio",
|
|
170
|
+
"google_maps_search",
|
|
171
|
+
"google_maps_reviews",
|
|
172
|
+
"google_maps_place",
|
|
173
|
+
"google_news",
|
|
174
|
+
"google_images",
|
|
175
|
+
"bing_search",
|
|
176
|
+
"yandex_search",
|
|
177
|
+
],
|
|
178
|
+
country: str | Omit = omit,
|
|
179
|
+
device: Literal["desktop", "mobile"] | Omit = omit,
|
|
180
|
+
domain: str | Omit = omit,
|
|
181
|
+
locale: str | Omit = omit,
|
|
182
|
+
location: str | Omit = omit,
|
|
183
|
+
num_results: int | Omit = omit,
|
|
184
|
+
page: int | Omit = omit,
|
|
185
|
+
parse: bool | Omit = omit,
|
|
186
|
+
query: str | Omit = omit,
|
|
187
|
+
render: bool | Omit = omit,
|
|
188
|
+
show_hidden_results: bool | Omit = omit,
|
|
189
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
190
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
191
|
+
extra_headers: Headers | None = None,
|
|
192
|
+
extra_query: Query | None = None,
|
|
193
|
+
extra_body: Body | None = None,
|
|
194
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
195
|
+
) -> FastSerpRunResponse:
|
|
196
|
+
"""
|
|
197
|
+
Fast SERP
|
|
198
|
+
|
|
199
|
+
Args:
|
|
200
|
+
search_engine: The search engine to query.
|
|
201
|
+
|
|
202
|
+
country: ISO Alpha-2 country code used to access the target search engine (e.g. US, DE,
|
|
203
|
+
GB).
|
|
204
|
+
|
|
205
|
+
device: Device type used for the search request.
|
|
206
|
+
|
|
207
|
+
domain: Top-level domain for the search engine (e.g. "com", "co.uk", "de").
|
|
208
|
+
|
|
209
|
+
locale: Locale used for the search request.
|
|
210
|
+
|
|
211
|
+
location: Geo-location for the search (canonical Google location name).
|
|
212
|
+
|
|
213
|
+
num_results: Number of results to return (1–100).
|
|
214
|
+
|
|
215
|
+
page: The result page number for pagination.
|
|
216
|
+
|
|
217
|
+
parse: When true, the SERP response is parsed into structured JSON.
|
|
218
|
+
|
|
219
|
+
query: The search keyword or phrase to query.
|
|
220
|
+
|
|
221
|
+
render: Whether to render the page in a browser before extracting.
|
|
222
|
+
|
|
223
|
+
show_hidden_results: When true, disables Google result filtering (filter=0) so omitted/duplicate and
|
|
224
|
+
highly similar pages are also returned. Applies to Google search engines.
|
|
225
|
+
|
|
226
|
+
extra_headers: Send extra headers
|
|
227
|
+
|
|
228
|
+
extra_query: Add additional query parameters to the request
|
|
229
|
+
|
|
230
|
+
extra_body: Add additional JSON properties to the request
|
|
231
|
+
|
|
232
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
233
|
+
"""
|
|
234
|
+
return await self._post(
|
|
235
|
+
"/v1/fast-serp",
|
|
236
|
+
body=await async_maybe_transform(
|
|
237
|
+
{
|
|
238
|
+
"search_engine": search_engine,
|
|
239
|
+
"country": country,
|
|
240
|
+
"device": device,
|
|
241
|
+
"domain": domain,
|
|
242
|
+
"locale": locale,
|
|
243
|
+
"location": location,
|
|
244
|
+
"num_results": num_results,
|
|
245
|
+
"page": page,
|
|
246
|
+
"parse": parse,
|
|
247
|
+
"query": query,
|
|
248
|
+
"render": render,
|
|
249
|
+
"show_hidden_results": show_hidden_results,
|
|
250
|
+
},
|
|
251
|
+
fast_serp_run_params.FastSerpRunParams,
|
|
252
|
+
),
|
|
253
|
+
options=make_request_options(
|
|
254
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
255
|
+
),
|
|
256
|
+
cast_to=FastSerpRunResponse,
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
class FastSerpResourceWithRawResponse:
|
|
261
|
+
def __init__(self, fast_serp: FastSerpResource) -> None:
|
|
262
|
+
self._fast_serp = fast_serp
|
|
263
|
+
|
|
264
|
+
self.run = to_raw_response_wrapper(
|
|
265
|
+
fast_serp.run,
|
|
266
|
+
)
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
class AsyncFastSerpResourceWithRawResponse:
|
|
270
|
+
def __init__(self, fast_serp: AsyncFastSerpResource) -> None:
|
|
271
|
+
self._fast_serp = fast_serp
|
|
272
|
+
|
|
273
|
+
self.run = async_to_raw_response_wrapper(
|
|
274
|
+
fast_serp.run,
|
|
275
|
+
)
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
class FastSerpResourceWithStreamingResponse:
|
|
279
|
+
def __init__(self, fast_serp: FastSerpResource) -> None:
|
|
280
|
+
self._fast_serp = fast_serp
|
|
281
|
+
|
|
282
|
+
self.run = to_streamed_response_wrapper(
|
|
283
|
+
fast_serp.run,
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
class AsyncFastSerpResourceWithStreamingResponse:
|
|
288
|
+
def __init__(self, fast_serp: AsyncFastSerpResource) -> None:
|
|
289
|
+
self._fast_serp = fast_serp
|
|
290
|
+
|
|
291
|
+
self.run = async_to_streamed_response_wrapper(
|
|
292
|
+
fast_serp.run,
|
|
293
|
+
)
|
|
@@ -84,6 +84,8 @@ class JobsResource(SyncAPIResource):
|
|
|
84
84
|
|
|
85
85
|
name: Job name.
|
|
86
86
|
|
|
87
|
+
description: Free-text description of the job.
|
|
88
|
+
|
|
87
89
|
destination: Where a job writes its results.
|
|
88
90
|
|
|
89
91
|
display_name: Human-friendly job name shown in the UI.
|
|
@@ -140,6 +142,8 @@ class JobsResource(SyncAPIResource):
|
|
|
140
142
|
Update Job
|
|
141
143
|
|
|
142
144
|
Args:
|
|
145
|
+
description: New description.
|
|
146
|
+
|
|
143
147
|
destination: Where a job writes its results.
|
|
144
148
|
|
|
145
149
|
display_name: New display name.
|
|
@@ -376,6 +380,8 @@ class AsyncJobsResource(AsyncAPIResource):
|
|
|
376
380
|
|
|
377
381
|
name: Job name.
|
|
378
382
|
|
|
383
|
+
description: Free-text description of the job.
|
|
384
|
+
|
|
379
385
|
destination: Where a job writes its results.
|
|
380
386
|
|
|
381
387
|
display_name: Human-friendly job name shown in the UI.
|
|
@@ -432,6 +438,8 @@ class AsyncJobsResource(AsyncAPIResource):
|
|
|
432
438
|
Update Job
|
|
433
439
|
|
|
434
440
|
Args:
|
|
441
|
+
description: New description.
|
|
442
|
+
|
|
435
443
|
destination: Where a job writes its results.
|
|
436
444
|
|
|
437
445
|
display_name: New display name.
|