nimble_python 0.9.0__tar.gz → 0.10.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.
Files changed (129) hide show
  1. nimble_python-0.10.0/.release-please-manifest.json +3 -0
  2. {nimble_python-0.9.0 → nimble_python-0.10.0}/CHANGELOG.md +23 -0
  3. {nimble_python-0.9.0 → nimble_python-0.10.0}/PKG-INFO +1 -1
  4. {nimble_python-0.9.0 → nimble_python-0.10.0}/pyproject.toml +1 -1
  5. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_client.py +42 -46
  6. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_response.py +3 -0
  7. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_streaming.py +8 -3
  8. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_version.py +1 -1
  9. nimble_python-0.10.0/src/nimble_python/types/client_extract_params.py +1050 -0
  10. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/client_search_params.py +19 -24
  11. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/extract_async_response.py +1 -1
  12. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/task_get_response.py +1 -1
  13. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/task_list_response.py +1 -1
  14. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/api_resources/test_client.py +6 -8
  15. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_client.py +16 -0
  16. {nimble_python-0.9.0 → nimble_python-0.10.0}/uv.lock +1 -1
  17. nimble_python-0.9.0/.release-please-manifest.json +0 -3
  18. nimble_python-0.9.0/src/nimble_python/types/client_extract_params.py +0 -1923
  19. {nimble_python-0.9.0 → nimble_python-0.10.0}/.gitignore +0 -0
  20. {nimble_python-0.9.0 → nimble_python-0.10.0}/CONTRIBUTING.md +0 -0
  21. {nimble_python-0.9.0 → nimble_python-0.10.0}/LICENSE +0 -0
  22. {nimble_python-0.9.0 → nimble_python-0.10.0}/README.md +0 -0
  23. {nimble_python-0.9.0 → nimble_python-0.10.0}/SECURITY.md +0 -0
  24. {nimble_python-0.9.0 → nimble_python-0.10.0}/api.md +0 -0
  25. {nimble_python-0.9.0 → nimble_python-0.10.0}/bin/check-release-environment +0 -0
  26. {nimble_python-0.9.0 → nimble_python-0.10.0}/bin/publish-pypi +0 -0
  27. {nimble_python-0.9.0 → nimble_python-0.10.0}/examples/.keep +0 -0
  28. {nimble_python-0.9.0 → nimble_python-0.10.0}/release-please-config.json +0 -0
  29. {nimble_python-0.9.0 → nimble_python-0.10.0}/requirements-dev.lock +0 -0
  30. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/__init__.py +0 -0
  31. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_base_client.py +0 -0
  32. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_compat.py +0 -0
  33. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_constants.py +0 -0
  34. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_exceptions.py +0 -0
  35. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_files.py +0 -0
  36. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_models.py +0 -0
  37. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_qs.py +0 -0
  38. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_resource.py +0 -0
  39. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_types.py +0 -0
  40. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/__init__.py +0 -0
  41. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/_compat.py +0 -0
  42. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/_datetime_parse.py +0 -0
  43. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/_json.py +0 -0
  44. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/_logs.py +0 -0
  45. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/_proxy.py +0 -0
  46. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/_reflection.py +0 -0
  47. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/_resources_proxy.py +0 -0
  48. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/_streams.py +0 -0
  49. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/_sync.py +0 -0
  50. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/_transform.py +0 -0
  51. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/_typing.py +0 -0
  52. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/_utils/_utils.py +0 -0
  53. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/lib/.keep +0 -0
  54. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/py.typed +0 -0
  55. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/resources/__init__.py +0 -0
  56. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/resources/agent.py +0 -0
  57. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/resources/crawl.py +0 -0
  58. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/resources/tasks.py +0 -0
  59. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/__init__.py +0 -0
  60. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/agent_get_response.py +0 -0
  61. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/agent_list_params.py +0 -0
  62. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/agent_list_response.py +0 -0
  63. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/agent_run_async_params.py +0 -0
  64. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/agent_run_async_response.py +0 -0
  65. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/agent_run_params.py +0 -0
  66. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/agent_run_response.py +0 -0
  67. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/client_extract_async_params.py +0 -0
  68. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/client_map_params.py +0 -0
  69. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/crawl_list_params.py +0 -0
  70. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/crawl_list_response.py +0 -0
  71. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/crawl_run_params.py +0 -0
  72. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/crawl_run_response.py +0 -0
  73. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/crawl_status_response.py +0 -0
  74. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/crawl_terminate_response.py +0 -0
  75. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/extract_response.py +0 -0
  76. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/map_response.py +0 -0
  77. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/search_response.py +0 -0
  78. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/__init__.py +0 -0
  79. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/auto_scroll_action.py +0 -0
  80. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/click_action.py +0 -0
  81. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/eval_action.py +0 -0
  82. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/fetch_action.py +0 -0
  83. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/fill_action.py +0 -0
  84. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/get_cookies_action.py +0 -0
  85. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/goto_action.py +0 -0
  86. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/press_action.py +0 -0
  87. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/screenshot_action.py +0 -0
  88. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/scroll_action.py +0 -0
  89. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/wait_action.py +0 -0
  90. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/wait_for_element_action.py +0 -0
  91. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared/wait_for_navigation_action.py +0 -0
  92. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/__init__.py +0 -0
  93. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/auto_scroll_action.py +0 -0
  94. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/click_action.py +0 -0
  95. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/eval_action.py +0 -0
  96. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/fetch_action.py +0 -0
  97. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/fill_action.py +0 -0
  98. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/get_cookies_action.py +0 -0
  99. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/goto_action.py +0 -0
  100. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/press_action.py +0 -0
  101. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/screenshot_action.py +0 -0
  102. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/scroll_action.py +0 -0
  103. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/wait_action.py +0 -0
  104. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/wait_for_element_action.py +0 -0
  105. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/shared_params/wait_for_navigation_action.py +0 -0
  106. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/task_list_params.py +0 -0
  107. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimble_python/types/task_results_response.py +0 -0
  108. {nimble_python-0.9.0 → nimble_python-0.10.0}/src/nimbleway/lib/.keep +0 -0
  109. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/__init__.py +0 -0
  110. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/api_resources/__init__.py +0 -0
  111. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/api_resources/test_agent.py +0 -0
  112. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/api_resources/test_crawl.py +0 -0
  113. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/api_resources/test_tasks.py +0 -0
  114. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/conftest.py +0 -0
  115. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/sample_file.txt +0 -0
  116. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_deepcopy.py +0 -0
  117. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_extract_files.py +0 -0
  118. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_files.py +0 -0
  119. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_models.py +0 -0
  120. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_qs.py +0 -0
  121. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_required_args.py +0 -0
  122. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_response.py +0 -0
  123. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_streaming.py +0 -0
  124. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_transform.py +0 -0
  125. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_utils/test_datetime_parse.py +0 -0
  126. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_utils/test_json.py +0 -0
  127. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_utils/test_proxy.py +0 -0
  128. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/test_utils/test_typing.py +0 -0
  129. {nimble_python-0.9.0 → nimble_python-0.10.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.10.0"
3
+ }
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.0 (2026-02-25)
4
+
5
+ Full Changelog: [v0.9.1...v0.10.0](https://github.com/Nimbleway/nimble-python/compare/v0.9.1...v0.10.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([65920db](https://github.com/Nimbleway/nimble-python/commit/65920dbd45b01c4e1df31d4961c290a9a885d768))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **internal:** add request options to SSE classes ([4c227e5](https://github.com/Nimbleway/nimble-python/commit/4c227e566299f0e680c96d929582b929b04a7b6a))
15
+ * **internal:** make `test_proxy_environment_variables` more resilient ([812a0bc](https://github.com/Nimbleway/nimble-python/commit/812a0bc7beee87efd2d4aadb7b6c9d2848bfc12b))
16
+ * **internal:** make `test_proxy_environment_variables` more resilient to env ([87829ce](https://github.com/Nimbleway/nimble-python/commit/87829ce5f3c87c5d1385755034c9b5b48174e8c7))
17
+
18
+ ## 0.9.1 (2026-02-22)
19
+
20
+ Full Changelog: [v0.9.0...v0.9.1](https://github.com/Nimbleway/nimble-python/compare/v0.9.0...v0.9.1)
21
+
22
+ ### Chores
23
+
24
+ * remove custom code ([1ddc742](https://github.com/Nimbleway/nimble-python/commit/1ddc74209b4d8032cf13955cec400f5a6ab84a97))
25
+
3
26
  ## 0.9.0 (2026-02-22)
4
27
 
5
28
  Full Changelog: [v0.8.0...v0.9.0](https://github.com/Nimbleway/nimble-python/compare/v0.8.0...v0.9.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: nimble_python
3
- Version: 0.9.0
3
+ Version: 0.10.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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nimble_python"
3
- version = "0.9.0"
3
+ version = "0.10.0"
4
4
  description = "The official Python library for the nimble API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -3075,16 +3075,15 @@ class Nimble(SyncAPIClient):
3075
3075
  deep_search: bool | Omit = omit,
3076
3076
  end_date: Optional[str] | Omit = omit,
3077
3077
  exclude_domains: Optional[SequenceNotStr[str]] | Omit = omit,
3078
+ focus: Union[str, SequenceNotStr[str]] | Omit = omit,
3078
3079
  include_answer: bool | Omit = omit,
3079
3080
  include_domains: Optional[SequenceNotStr[str]] | Omit = omit,
3080
3081
  locale: str | Omit = omit,
3082
+ max_results: int | Omit = omit,
3081
3083
  max_subagents: int | Omit = omit,
3082
- num_results: int | Omit = omit,
3083
- parsing_type: Literal["plain_text", "markdown", "simplified_html"] | Omit = omit,
3084
- search_engine: Optional[Literal["google_search", "google_sge", "bing_search", "yandex_search"]] | Omit = omit,
3084
+ output_format: Literal["plain_text", "markdown", "simplified_html"] | Omit = omit,
3085
3085
  start_date: Optional[str] | Omit = omit,
3086
3086
  time_range: Optional[Literal["hour", "day", "week", "month", "year"]] | Omit = omit,
3087
- topic: Union[str, SequenceNotStr[str]] | Omit = omit,
3088
3087
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
3089
3088
  # The extra values given here take precedence over values defined on the client or passed to this method.
3090
3089
  extra_headers: Headers | None = None,
@@ -3102,37 +3101,37 @@ class Nimble(SyncAPIClient):
3102
3101
  groups ('documents', 'spreadsheets', 'presentations') and specific formats
3103
3102
  ('pdf', 'docx', 'xlsx', etc.)
3104
3103
 
3105
- deep_search: If True, fetches and extracts full page content for each search result. If
3106
- False, returns only metadata (title, snippet, URL)
3104
+ country: Country code for geo-targeted results (e.g., 'US', 'GB', 'IL')
3105
+
3106
+ deep_search: Deep Mode (true, default): fetches full-page content for deeper analysis. Fast
3107
+ Mode (false): returns metadata only (title, snippet, URL) for quick,
3108
+ token-efficient results.
3107
3109
 
3108
3110
  end_date: Filter results before this date (format: YYYY-MM-DD or YYYY)
3109
3111
 
3110
3112
  exclude_domains: List of domains to exclude from search results. Maximum 50 domains.
3111
3113
 
3112
- include_answer: Generate LLM answer summary based on search result snippets (works with both
3113
- deep_search=True and False)
3114
+ focus: Search focus mode (e.g., 'general', 'news', 'shopping') or a list of explicit
3115
+ subagent names (e.g., ['amazon_serp', 'target_serp'])
3116
+
3117
+ include_answer: Generate an LLM-powered answer summary based on search result snippets.
3114
3118
 
3115
3119
  include_domains: List of domains to include in search results. Maximum 50 domains.
3116
3120
 
3117
- max_subagents: Maximum number of subagents to execute in parallel for WSA focus modes
3118
- (shopping, social, geo). Ignored for traditional SERP focus modes. Default: 3,
3119
- Range: 1-10.
3121
+ locale: Language/locale code (e.g., 'en', 'fr', 'de')
3120
3122
 
3121
- num_results: Maximum number of results to return (actual count may be less)
3123
+ max_results: Maximum number of results to return. Actual count may be lower depending on
3124
+ availability.
3122
3125
 
3123
- parsing_type: Output format: plain_text, markdown, or simplified_html
3126
+ max_subagents: Maximum number of subagents to execute in parallel for WSA focus modes
3127
+ (shopping, social, geo). Ignored for SERP focus modes.
3124
3128
 
3125
- search_engine: Enum representing the search engines supported by Nimble ⚠️ DEPRECATED: This
3126
- parameter is ignored. Use 'focus' parameter instead.
3129
+ output_format: Output format: plain_text, markdown, or simplified_html
3127
3130
 
3128
3131
  start_date: Filter results after this date (format: YYYY-MM-DD or YYYY)
3129
3132
 
3130
3133
  time_range: Time range filters passed to Webit SERP API as 'time' parameter.
3131
3134
 
3132
- topic: Search focus/specialization. Can be a single focus mode (e.g., 'shopping',
3133
- 'social') or a list of explicit subagent names (e.g., ['amazon_serp',
3134
- 'target_serp'])
3135
-
3136
3135
  extra_headers: Send extra headers
3137
3136
 
3138
3137
  extra_query: Add additional query parameters to the request
@@ -3151,16 +3150,15 @@ class Nimble(SyncAPIClient):
3151
3150
  "deep_search": deep_search,
3152
3151
  "end_date": end_date,
3153
3152
  "exclude_domains": exclude_domains,
3153
+ "focus": focus,
3154
3154
  "include_answer": include_answer,
3155
3155
  "include_domains": include_domains,
3156
3156
  "locale": locale,
3157
+ "max_results": max_results,
3157
3158
  "max_subagents": max_subagents,
3158
- "num_results": num_results,
3159
- "parsing_type": parsing_type,
3160
- "search_engine": search_engine,
3159
+ "output_format": output_format,
3161
3160
  "start_date": start_date,
3162
3161
  "time_range": time_range,
3163
- "topic": topic,
3164
3162
  },
3165
3163
  client_search_params.ClientSearchParams,
3166
3164
  ),
@@ -6218,16 +6216,15 @@ class AsyncNimble(AsyncAPIClient):
6218
6216
  deep_search: bool | Omit = omit,
6219
6217
  end_date: Optional[str] | Omit = omit,
6220
6218
  exclude_domains: Optional[SequenceNotStr[str]] | Omit = omit,
6219
+ focus: Union[str, SequenceNotStr[str]] | Omit = omit,
6221
6220
  include_answer: bool | Omit = omit,
6222
6221
  include_domains: Optional[SequenceNotStr[str]] | Omit = omit,
6223
6222
  locale: str | Omit = omit,
6223
+ max_results: int | Omit = omit,
6224
6224
  max_subagents: int | Omit = omit,
6225
- num_results: int | Omit = omit,
6226
- parsing_type: Literal["plain_text", "markdown", "simplified_html"] | Omit = omit,
6227
- search_engine: Optional[Literal["google_search", "google_sge", "bing_search", "yandex_search"]] | Omit = omit,
6225
+ output_format: Literal["plain_text", "markdown", "simplified_html"] | Omit = omit,
6228
6226
  start_date: Optional[str] | Omit = omit,
6229
6227
  time_range: Optional[Literal["hour", "day", "week", "month", "year"]] | Omit = omit,
6230
- topic: Union[str, SequenceNotStr[str]] | Omit = omit,
6231
6228
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6232
6229
  # The extra values given here take precedence over values defined on the client or passed to this method.
6233
6230
  extra_headers: Headers | None = None,
@@ -6245,37 +6242,37 @@ class AsyncNimble(AsyncAPIClient):
6245
6242
  groups ('documents', 'spreadsheets', 'presentations') and specific formats
6246
6243
  ('pdf', 'docx', 'xlsx', etc.)
6247
6244
 
6248
- deep_search: If True, fetches and extracts full page content for each search result. If
6249
- False, returns only metadata (title, snippet, URL)
6245
+ country: Country code for geo-targeted results (e.g., 'US', 'GB', 'IL')
6246
+
6247
+ deep_search: Deep Mode (true, default): fetches full-page content for deeper analysis. Fast
6248
+ Mode (false): returns metadata only (title, snippet, URL) for quick,
6249
+ token-efficient results.
6250
6250
 
6251
6251
  end_date: Filter results before this date (format: YYYY-MM-DD or YYYY)
6252
6252
 
6253
6253
  exclude_domains: List of domains to exclude from search results. Maximum 50 domains.
6254
6254
 
6255
- include_answer: Generate LLM answer summary based on search result snippets (works with both
6256
- deep_search=True and False)
6255
+ focus: Search focus mode (e.g., 'general', 'news', 'shopping') or a list of explicit
6256
+ subagent names (e.g., ['amazon_serp', 'target_serp'])
6257
+
6258
+ include_answer: Generate an LLM-powered answer summary based on search result snippets.
6257
6259
 
6258
6260
  include_domains: List of domains to include in search results. Maximum 50 domains.
6259
6261
 
6260
- max_subagents: Maximum number of subagents to execute in parallel for WSA focus modes
6261
- (shopping, social, geo). Ignored for traditional SERP focus modes. Default: 3,
6262
- Range: 1-10.
6262
+ locale: Language/locale code (e.g., 'en', 'fr', 'de')
6263
6263
 
6264
- num_results: Maximum number of results to return (actual count may be less)
6264
+ max_results: Maximum number of results to return. Actual count may be lower depending on
6265
+ availability.
6265
6266
 
6266
- parsing_type: Output format: plain_text, markdown, or simplified_html
6267
+ max_subagents: Maximum number of subagents to execute in parallel for WSA focus modes
6268
+ (shopping, social, geo). Ignored for SERP focus modes.
6267
6269
 
6268
- search_engine: Enum representing the search engines supported by Nimble ⚠️ DEPRECATED: This
6269
- parameter is ignored. Use 'focus' parameter instead.
6270
+ output_format: Output format: plain_text, markdown, or simplified_html
6270
6271
 
6271
6272
  start_date: Filter results after this date (format: YYYY-MM-DD or YYYY)
6272
6273
 
6273
6274
  time_range: Time range filters passed to Webit SERP API as 'time' parameter.
6274
6275
 
6275
- topic: Search focus/specialization. Can be a single focus mode (e.g., 'shopping',
6276
- 'social') or a list of explicit subagent names (e.g., ['amazon_serp',
6277
- 'target_serp'])
6278
-
6279
6276
  extra_headers: Send extra headers
6280
6277
 
6281
6278
  extra_query: Add additional query parameters to the request
@@ -6294,16 +6291,15 @@ class AsyncNimble(AsyncAPIClient):
6294
6291
  "deep_search": deep_search,
6295
6292
  "end_date": end_date,
6296
6293
  "exclude_domains": exclude_domains,
6294
+ "focus": focus,
6297
6295
  "include_answer": include_answer,
6298
6296
  "include_domains": include_domains,
6299
6297
  "locale": locale,
6298
+ "max_results": max_results,
6300
6299
  "max_subagents": max_subagents,
6301
- "num_results": num_results,
6302
- "parsing_type": parsing_type,
6303
- "search_engine": search_engine,
6300
+ "output_format": output_format,
6304
6301
  "start_date": start_date,
6305
6302
  "time_range": time_range,
6306
- "topic": topic,
6307
6303
  },
6308
6304
  client_search_params.ClientSearchParams,
6309
6305
  ),
@@ -152,6 +152,7 @@ class BaseAPIResponse(Generic[R]):
152
152
  ),
153
153
  response=self.http_response,
154
154
  client=cast(Any, self._client),
155
+ options=self._options,
155
156
  ),
156
157
  )
157
158
 
@@ -162,6 +163,7 @@ class BaseAPIResponse(Generic[R]):
162
163
  cast_to=extract_stream_chunk_type(self._stream_cls),
163
164
  response=self.http_response,
164
165
  client=cast(Any, self._client),
166
+ options=self._options,
165
167
  ),
166
168
  )
167
169
 
@@ -175,6 +177,7 @@ class BaseAPIResponse(Generic[R]):
175
177
  cast_to=cast_to,
176
178
  response=self.http_response,
177
179
  client=cast(Any, self._client),
180
+ options=self._options,
178
181
  ),
179
182
  )
180
183
 
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
  import json
5
5
  import inspect
6
6
  from types import TracebackType
7
- from typing import TYPE_CHECKING, Any, Generic, TypeVar, Iterator, AsyncIterator, cast
7
+ from typing import TYPE_CHECKING, Any, Generic, TypeVar, Iterator, Optional, AsyncIterator, cast
8
8
  from typing_extensions import Self, Protocol, TypeGuard, override, get_origin, runtime_checkable
9
9
 
10
10
  import httpx
@@ -13,6 +13,7 @@ from ._utils import extract_type_var_from_base
13
13
 
14
14
  if TYPE_CHECKING:
15
15
  from ._client import Nimble, AsyncNimble
16
+ from ._models import FinalRequestOptions
16
17
 
17
18
 
18
19
  _T = TypeVar("_T")
@@ -22,7 +23,7 @@ class Stream(Generic[_T]):
22
23
  """Provides the core interface to iterate over a synchronous stream response."""
23
24
 
24
25
  response: httpx.Response
25
-
26
+ _options: Optional[FinalRequestOptions] = None
26
27
  _decoder: SSEBytesDecoder
27
28
 
28
29
  def __init__(
@@ -31,10 +32,12 @@ class Stream(Generic[_T]):
31
32
  cast_to: type[_T],
32
33
  response: httpx.Response,
33
34
  client: Nimble,
35
+ options: Optional[FinalRequestOptions] = None,
34
36
  ) -> None:
35
37
  self.response = response
36
38
  self._cast_to = cast_to
37
39
  self._client = client
40
+ self._options = options
38
41
  self._decoder = client._make_sse_decoder()
39
42
  self._iterator = self.__stream__()
40
43
 
@@ -85,7 +88,7 @@ class AsyncStream(Generic[_T]):
85
88
  """Provides the core interface to iterate over an asynchronous stream response."""
86
89
 
87
90
  response: httpx.Response
88
-
91
+ _options: Optional[FinalRequestOptions] = None
89
92
  _decoder: SSEDecoder | SSEBytesDecoder
90
93
 
91
94
  def __init__(
@@ -94,10 +97,12 @@ class AsyncStream(Generic[_T]):
94
97
  cast_to: type[_T],
95
98
  response: httpx.Response,
96
99
  client: AsyncNimble,
100
+ options: Optional[FinalRequestOptions] = None,
97
101
  ) -> None:
98
102
  self.response = response
99
103
  self._cast_to = cast_to
100
104
  self._client = client
105
+ self._options = options
101
106
  self._decoder = client._make_sse_decoder()
102
107
  self._iterator = self.__stream__()
103
108
 
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "nimble_python"
4
- __version__ = "0.9.0" # x-release-please-version
4
+ __version__ = "0.10.0" # x-release-please-version