nimble_python 0.20.0__tar.gz → 0.21.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.21.0/.release-please-manifest.json +3 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/CHANGELOG.md +8 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/PKG-INFO +1 -1
- {nimble_python-0.20.0 → nimble_python-0.21.0}/api.md +12 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/pyproject.toml +1 -1
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_client.py +38 -1
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_version.py +1 -1
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/__init__.py +14 -0
- nimble_python-0.21.0/src/nimble_python/resources/fast_serp.py +293 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/__init__.py +2 -0
- nimble_python-0.21.0/src/nimble_python/types/fast_serp_run_params.py +64 -0
- nimble_python-0.21.0/src/nimble_python/types/fast_serp_run_response.py +339 -0
- nimble_python-0.21.0/tests/api_resources/test_fast_serp.py +130 -0
- nimble_python-0.20.0/.release-please-manifest.json +0 -3
- {nimble_python-0.20.0 → nimble_python-0.21.0}/.gitignore +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/CONTRIBUTING.md +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/LICENSE +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/README.md +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/SECURITY.md +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/bin/check-release-environment +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/bin/publish-pypi +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/examples/.keep +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/release-please-config.json +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/requirements-dev.lock +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_base_client.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_compat.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_constants.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_exceptions.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_files.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_models.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_qs.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_resource.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_streaming.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_types.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_compat.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_datetime_parse.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_json.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_logs.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_path.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_proxy.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_reflection.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_resources_proxy.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_streams.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_sync.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_transform.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_typing.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/_utils/_utils.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/lib/.keep +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/py.typed +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/agent.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/batches.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/crawl.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/domain_knowledge.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/jobs/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/jobs/jobs.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/jobs/runs/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/jobs/runs/artifacts.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/jobs/runs/runs.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/media.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/serp.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/task_agent/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/task_agent/runs.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/task_agent/task_agent.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/task_agent/templates.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/resources/tasks.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/agent_generate_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/agent_generate_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/agent_get_generation_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/agent_get_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/agent_list_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/agent_list_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/agent_run_async_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/agent_run_async_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/agent_run_batch_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/agent_run_batch_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/agent_run_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/agent_run_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/batch_get_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/batch_progress_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/client_extract_async_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/client_extract_batch_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/client_extract_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/client_map_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/client_search_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/crawl_list_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/crawl_list_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/crawl_run_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/crawl_run_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/crawl_status_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/crawl_terminate_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/domain_knowledge_get_driver_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/domain_knowledge_get_driver_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/extract_async_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/extract_batch_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/extract_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/job_create_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/job_create_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/job_get_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/job_list_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/job_list_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/job_run_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/job_update_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/job_update_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/jobs/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/jobs/run_cancel_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/jobs/run_get_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/jobs/run_list_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/jobs/run_list_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/jobs/runs/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/jobs/runs/artifact_download_url_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/jobs/runs/artifact_get_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/jobs/runs/artifact_list_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/jobs/runs/artifact_preview_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/map_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/media_run_async_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/media_run_async_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/media_run_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/media_run_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/search_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/serp_run_async_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/serp_run_async_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/serp_run_batch_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/serp_run_batch_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/serp_run_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/serp_run_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/auto_scroll_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/click_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/eval_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/fetch_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/fill_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/get_cookies_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/goto_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/press_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/screenshot_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/scroll_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/wait_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/wait_for_element_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared/wait_for_navigation_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/auto_scroll_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/click_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/eval_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/fetch_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/fill_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/get_cookies_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/goto_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/press_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/screenshot_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/scroll_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/wait_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/wait_for_element_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/shared_params/wait_for_navigation_action.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent/run_get_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent/run_get_result_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent/run_list_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent/run_list_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent/template_get_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent/template_list_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent/template_list_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent_create_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent_create_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent_get_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent_list_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent_list_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent_run_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent_run_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent_update_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_agent_update_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_get_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_list_params.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_list_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimble_python/types/task_results_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/src/nimbleway/lib/.keep +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/jobs/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/jobs/runs/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/jobs/runs/test_artifacts.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/jobs/test_runs.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/task_agent/__init__.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/task_agent/test_runs.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/task_agent/test_templates.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/test_agent.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/test_batches.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/test_client.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/test_crawl.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/test_domain_knowledge.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/test_jobs.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/test_media.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/test_serp.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/test_task_agent.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/api_resources/test_tasks.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/conftest.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/sample_file.txt +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_client.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_extract_files.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_files.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_models.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_qs.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_required_args.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_response.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_streaming.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_transform.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_utils/test_json.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_utils/test_path.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_utils/test_proxy.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/test_utils/test_typing.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/tests/utils.py +0 -0
- {nimble_python-0.20.0 → nimble_python-0.21.0}/uv.lock +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.0 (2026-06-22)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.20.0...v0.21.0](https://github.com/Nimbleway/nimble-python/compare/v0.20.0...v0.21.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([9bade2f](https://github.com/Nimbleway/nimble-python/commit/9bade2fd7b7618e15200f4143c16cddf5b6b992c))
|
|
10
|
+
|
|
3
11
|
## 0.20.0 (2026-06-18)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.19.0...v0.20.0](https://github.com/Nimbleway/nimble-python/compare/v0.19.0...v0.20.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: nimble_python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.21.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
|
|
@@ -3459,6 +3466,12 @@ class AsyncNimble(AsyncAPIClient):
|
|
|
3459
3466
|
|
|
3460
3467
|
return AsyncSerpResource(self)
|
|
3461
3468
|
|
|
3469
|
+
@cached_property
|
|
3470
|
+
def fast_serp(self) -> AsyncFastSerpResource:
|
|
3471
|
+
from .resources.fast_serp import AsyncFastSerpResource
|
|
3472
|
+
|
|
3473
|
+
return AsyncFastSerpResource(self)
|
|
3474
|
+
|
|
3462
3475
|
@cached_property
|
|
3463
3476
|
def task_agent(self) -> AsyncTaskAgentResource:
|
|
3464
3477
|
from .resources.task_agent import AsyncTaskAgentResource
|
|
@@ -6687,6 +6700,12 @@ class NimbleWithRawResponse:
|
|
|
6687
6700
|
|
|
6688
6701
|
return SerpResourceWithRawResponse(self._client.serp)
|
|
6689
6702
|
|
|
6703
|
+
@cached_property
|
|
6704
|
+
def fast_serp(self) -> fast_serp.FastSerpResourceWithRawResponse:
|
|
6705
|
+
from .resources.fast_serp import FastSerpResourceWithRawResponse
|
|
6706
|
+
|
|
6707
|
+
return FastSerpResourceWithRawResponse(self._client.fast_serp)
|
|
6708
|
+
|
|
6690
6709
|
@cached_property
|
|
6691
6710
|
def task_agent(self) -> task_agent.TaskAgentResourceWithRawResponse:
|
|
6692
6711
|
from .resources.task_agent import TaskAgentResourceWithRawResponse
|
|
@@ -6764,6 +6783,12 @@ class AsyncNimbleWithRawResponse:
|
|
|
6764
6783
|
|
|
6765
6784
|
return AsyncSerpResourceWithRawResponse(self._client.serp)
|
|
6766
6785
|
|
|
6786
|
+
@cached_property
|
|
6787
|
+
def fast_serp(self) -> fast_serp.AsyncFastSerpResourceWithRawResponse:
|
|
6788
|
+
from .resources.fast_serp import AsyncFastSerpResourceWithRawResponse
|
|
6789
|
+
|
|
6790
|
+
return AsyncFastSerpResourceWithRawResponse(self._client.fast_serp)
|
|
6791
|
+
|
|
6767
6792
|
@cached_property
|
|
6768
6793
|
def task_agent(self) -> task_agent.AsyncTaskAgentResourceWithRawResponse:
|
|
6769
6794
|
from .resources.task_agent import AsyncTaskAgentResourceWithRawResponse
|
|
@@ -6841,6 +6866,12 @@ class NimbleWithStreamedResponse:
|
|
|
6841
6866
|
|
|
6842
6867
|
return SerpResourceWithStreamingResponse(self._client.serp)
|
|
6843
6868
|
|
|
6869
|
+
@cached_property
|
|
6870
|
+
def fast_serp(self) -> fast_serp.FastSerpResourceWithStreamingResponse:
|
|
6871
|
+
from .resources.fast_serp import FastSerpResourceWithStreamingResponse
|
|
6872
|
+
|
|
6873
|
+
return FastSerpResourceWithStreamingResponse(self._client.fast_serp)
|
|
6874
|
+
|
|
6844
6875
|
@cached_property
|
|
6845
6876
|
def task_agent(self) -> task_agent.TaskAgentResourceWithStreamingResponse:
|
|
6846
6877
|
from .resources.task_agent import TaskAgentResourceWithStreamingResponse
|
|
@@ -6918,6 +6949,12 @@ class AsyncNimbleWithStreamedResponse:
|
|
|
6918
6949
|
|
|
6919
6950
|
return AsyncSerpResourceWithStreamingResponse(self._client.serp)
|
|
6920
6951
|
|
|
6952
|
+
@cached_property
|
|
6953
|
+
def fast_serp(self) -> fast_serp.AsyncFastSerpResourceWithStreamingResponse:
|
|
6954
|
+
from .resources.fast_serp import AsyncFastSerpResourceWithStreamingResponse
|
|
6955
|
+
|
|
6956
|
+
return AsyncFastSerpResourceWithStreamingResponse(self._client.fast_serp)
|
|
6957
|
+
|
|
6921
6958
|
@cached_property
|
|
6922
6959
|
def task_agent(self) -> task_agent.AsyncTaskAgentResourceWithStreamingResponse:
|
|
6923
6960
|
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",
|
|
@@ -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
|
+
)
|
|
@@ -47,6 +47,7 @@ from .crawl_list_response import CrawlListResponse as CrawlListResponse
|
|
|
47
47
|
from .job_create_response import JobCreateResponse as JobCreateResponse
|
|
48
48
|
from .job_update_response import JobUpdateResponse as JobUpdateResponse
|
|
49
49
|
from .client_search_params import ClientSearchParams as ClientSearchParams
|
|
50
|
+
from .fast_serp_run_params import FastSerpRunParams as FastSerpRunParams
|
|
50
51
|
from .agent_generate_params import AgentGenerateParams as AgentGenerateParams
|
|
51
52
|
from .client_extract_params import ClientExtractParams as ClientExtractParams
|
|
52
53
|
from .crawl_status_response import CrawlStatusResponse as CrawlStatusResponse
|
|
@@ -58,6 +59,7 @@ from .agent_run_async_params import AgentRunAsyncParams as AgentRunAsyncParams
|
|
|
58
59
|
from .agent_run_batch_params import AgentRunBatchParams as AgentRunBatchParams
|
|
59
60
|
from .extract_async_response import ExtractAsyncResponse as ExtractAsyncResponse
|
|
60
61
|
from .extract_batch_response import ExtractBatchResponse as ExtractBatchResponse
|
|
62
|
+
from .fast_serp_run_response import FastSerpRunResponse as FastSerpRunResponse
|
|
61
63
|
from .media_run_async_params import MediaRunAsyncParams as MediaRunAsyncParams
|
|
62
64
|
from .task_agent_list_params import TaskAgentListParams as TaskAgentListParams
|
|
63
65
|
from .agent_generate_response import AgentGenerateResponse as AgentGenerateResponse
|
|
@@ -0,0 +1,64 @@
|
|
|
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, Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["FastSerpRunParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastSerpRunParams(TypedDict, total=False):
|
|
11
|
+
search_engine: Required[
|
|
12
|
+
Literal[
|
|
13
|
+
"google_search",
|
|
14
|
+
"google_sge",
|
|
15
|
+
"google_aio",
|
|
16
|
+
"google_maps_search",
|
|
17
|
+
"google_maps_reviews",
|
|
18
|
+
"google_maps_place",
|
|
19
|
+
"google_news",
|
|
20
|
+
"google_images",
|
|
21
|
+
"bing_search",
|
|
22
|
+
"yandex_search",
|
|
23
|
+
]
|
|
24
|
+
]
|
|
25
|
+
"""The search engine to query."""
|
|
26
|
+
|
|
27
|
+
country: str
|
|
28
|
+
"""ISO Alpha-2 country code used to access the target search engine (e.g.
|
|
29
|
+
|
|
30
|
+
US, DE, GB).
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
device: Literal["desktop", "mobile"]
|
|
34
|
+
"""Device type used for the search request."""
|
|
35
|
+
|
|
36
|
+
domain: str
|
|
37
|
+
"""Top-level domain for the search engine (e.g. "com", "co.uk", "de")."""
|
|
38
|
+
|
|
39
|
+
locale: str
|
|
40
|
+
"""Locale used for the search request."""
|
|
41
|
+
|
|
42
|
+
location: str
|
|
43
|
+
"""Geo-location for the search (canonical Google location name)."""
|
|
44
|
+
|
|
45
|
+
num_results: int
|
|
46
|
+
"""Number of results to return (1–100)."""
|
|
47
|
+
|
|
48
|
+
page: int
|
|
49
|
+
"""The result page number for pagination."""
|
|
50
|
+
|
|
51
|
+
parse: bool
|
|
52
|
+
"""When true, the SERP response is parsed into structured JSON."""
|
|
53
|
+
|
|
54
|
+
query: str
|
|
55
|
+
"""The search keyword or phrase to query."""
|
|
56
|
+
|
|
57
|
+
render: bool
|
|
58
|
+
"""Whether to render the page in a browser before extracting."""
|
|
59
|
+
|
|
60
|
+
show_hidden_results: bool
|
|
61
|
+
"""
|
|
62
|
+
When true, disables Google result filtering (filter=0) so omitted/duplicate and
|
|
63
|
+
highly similar pages are also returned. Applies to Google search engines.
|
|
64
|
+
"""
|