worqhat 3.4.0__tar.gz → 3.5.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 (89) hide show
  1. worqhat-3.5.0/.release-please-manifest.json +3 -0
  2. {worqhat-3.4.0 → worqhat-3.5.0}/CHANGELOG.md +16 -0
  3. {worqhat-3.4.0 → worqhat-3.5.0}/PKG-INFO +3 -3
  4. {worqhat-3.4.0 → worqhat-3.5.0}/README.md +2 -2
  5. {worqhat-3.4.0 → worqhat-3.5.0}/pyproject.toml +1 -1
  6. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_version.py +1 -1
  7. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/resources/db.py +6 -6
  8. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_process_nl_query_params.py +2 -2
  9. {worqhat-3.4.0 → worqhat-3.5.0}/tests/api_resources/test_db.py +6 -18
  10. worqhat-3.4.0/.release-please-manifest.json +0 -3
  11. {worqhat-3.4.0 → worqhat-3.5.0}/.gitignore +0 -0
  12. {worqhat-3.4.0 → worqhat-3.5.0}/CONTRIBUTING.md +0 -0
  13. {worqhat-3.4.0 → worqhat-3.5.0}/LICENSE +0 -0
  14. {worqhat-3.4.0 → worqhat-3.5.0}/SECURITY.md +0 -0
  15. {worqhat-3.4.0 → worqhat-3.5.0}/api.md +0 -0
  16. {worqhat-3.4.0 → worqhat-3.5.0}/bin/check-release-environment +0 -0
  17. {worqhat-3.4.0 → worqhat-3.5.0}/bin/publish-pypi +0 -0
  18. {worqhat-3.4.0 → worqhat-3.5.0}/examples/.keep +0 -0
  19. {worqhat-3.4.0 → worqhat-3.5.0}/mypy.ini +0 -0
  20. {worqhat-3.4.0 → worqhat-3.5.0}/noxfile.py +0 -0
  21. {worqhat-3.4.0 → worqhat-3.5.0}/release-please-config.json +0 -0
  22. {worqhat-3.4.0 → worqhat-3.5.0}/requirements-dev.lock +0 -0
  23. {worqhat-3.4.0 → worqhat-3.5.0}/requirements.lock +0 -0
  24. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/__init__.py +0 -0
  25. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_base_client.py +0 -0
  26. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_client.py +0 -0
  27. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_compat.py +0 -0
  28. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_constants.py +0 -0
  29. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_exceptions.py +0 -0
  30. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_files.py +0 -0
  31. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_models.py +0 -0
  32. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_qs.py +0 -0
  33. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_resource.py +0 -0
  34. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_response.py +0 -0
  35. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_streaming.py +0 -0
  36. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_types.py +0 -0
  37. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/__init__.py +0 -0
  38. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_logs.py +0 -0
  39. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_proxy.py +0 -0
  40. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_reflection.py +0 -0
  41. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_resources_proxy.py +0 -0
  42. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_streams.py +0 -0
  43. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_sync.py +0 -0
  44. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_transform.py +0 -0
  45. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_typing.py +0 -0
  46. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_utils.py +0 -0
  47. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/lib/.keep +0 -0
  48. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/py.typed +0 -0
  49. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/resources/__init__.py +0 -0
  50. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/resources/flows.py +0 -0
  51. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/resources/health.py +0 -0
  52. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/__init__.py +0 -0
  53. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_delete_records_params.py +0 -0
  54. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_delete_records_response.py +0 -0
  55. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_execute_query_params.py +0 -0
  56. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_execute_query_response.py +0 -0
  57. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_insert_record_params.py +0 -0
  58. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_insert_record_response.py +0 -0
  59. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_process_nl_query_response.py +0 -0
  60. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_update_records_params.py +0 -0
  61. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_update_records_response.py +0 -0
  62. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/flow_get_metrics_params.py +0 -0
  63. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/flow_get_metrics_response.py +0 -0
  64. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/flow_trigger_with_file_params.py +0 -0
  65. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/flow_trigger_with_file_response.py +0 -0
  66. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/flow_trigger_with_payload_params.py +0 -0
  67. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/flow_trigger_with_payload_response.py +0 -0
  68. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/get_server_info_response.py +0 -0
  69. {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/health_check_response.py +0 -0
  70. {worqhat-3.4.0 → worqhat-3.5.0}/tests/__init__.py +0 -0
  71. {worqhat-3.4.0 → worqhat-3.5.0}/tests/api_resources/__init__.py +0 -0
  72. {worqhat-3.4.0 → worqhat-3.5.0}/tests/api_resources/test_client.py +0 -0
  73. {worqhat-3.4.0 → worqhat-3.5.0}/tests/api_resources/test_flows.py +0 -0
  74. {worqhat-3.4.0 → worqhat-3.5.0}/tests/api_resources/test_health.py +0 -0
  75. {worqhat-3.4.0 → worqhat-3.5.0}/tests/conftest.py +0 -0
  76. {worqhat-3.4.0 → worqhat-3.5.0}/tests/sample_file.txt +0 -0
  77. {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_client.py +0 -0
  78. {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_deepcopy.py +0 -0
  79. {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_extract_files.py +0 -0
  80. {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_files.py +0 -0
  81. {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_models.py +0 -0
  82. {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_qs.py +0 -0
  83. {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_required_args.py +0 -0
  84. {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_response.py +0 -0
  85. {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_streaming.py +0 -0
  86. {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_transform.py +0 -0
  87. {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_utils/test_proxy.py +0 -0
  88. {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_utils/test_typing.py +0 -0
  89. {worqhat-3.4.0 → worqhat-3.5.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "3.5.0"
3
+ }
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.5.0 (2025-08-01)
4
+
5
+ Full Changelog: [v3.4.2...v3.5.0](https://github.com/WorqHat/worqhat-python-sdk/compare/v3.4.2...v3.5.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** update via SDK Studio ([601f909](https://github.com/WorqHat/worqhat-python-sdk/commit/601f9095e3e2f42875500711dc803ae756cf80bd))
10
+
11
+ ## 3.4.2 (2025-07-31)
12
+
13
+ Full Changelog: [v3.4.1...v3.4.2](https://github.com/WorqHat/worqhat-python-sdk/compare/v3.4.1...v3.4.2)
14
+
15
+ ## 3.4.1 (2025-07-31)
16
+
17
+ Full Changelog: [v3.4.0...v3.4.1](https://github.com/WorqHat/worqhat-python-sdk/compare/v3.4.0...v3.4.1)
18
+
3
19
  ## 3.4.0 (2025-07-31)
4
20
 
5
21
  Full Changelog: [v0.0.1-alpha.0...v3.4.0](https://github.com/WorqHat/worqhat-python-sdk/compare/v0.0.1-alpha.0...v3.4.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worqhat
3
- Version: 3.4.0
3
+ Version: 3.5.0
4
4
  Summary: The official Python library for the worqhat API
5
5
  Project-URL: Homepage, https://github.com/WorqHat/worqhat-python-sdk
6
6
  Project-URL: Repository, https://github.com/WorqHat/worqhat-python-sdk
@@ -52,7 +52,7 @@ The REST API documentation can be found on [worqhat.com](https://worqhat.com/sup
52
52
 
53
53
  ```sh
54
54
  # install from PyPI
55
- pip install --pre worqhat
55
+ pip install worqhat
56
56
  ```
57
57
 
58
58
  ## Usage
@@ -112,7 +112,7 @@ You can enable this by installing `aiohttp`:
112
112
 
113
113
  ```sh
114
114
  # install from PyPI
115
- pip install --pre worqhat[aiohttp]
115
+ pip install worqhat[aiohttp]
116
116
  ```
117
117
 
118
118
  Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
@@ -17,7 +17,7 @@ The REST API documentation can be found on [worqhat.com](https://worqhat.com/sup
17
17
 
18
18
  ```sh
19
19
  # install from PyPI
20
- pip install --pre worqhat
20
+ pip install worqhat
21
21
  ```
22
22
 
23
23
  ## Usage
@@ -77,7 +77,7 @@ You can enable this by installing `aiohttp`:
77
77
 
78
78
  ```sh
79
79
  # install from PyPI
80
- pip install --pre worqhat[aiohttp]
80
+ pip install worqhat[aiohttp]
81
81
  ```
82
82
 
83
83
  Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "worqhat"
3
- version = "3.4.0"
3
+ version = "3.5.0"
4
4
  description = "The official Python library for the worqhat API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "worqhat"
4
- __version__ = "3.4.0" # x-release-please-version
4
+ __version__ = "3.5.0" # x-release-please-version
@@ -181,7 +181,7 @@ class DBResource(SyncAPIResource):
181
181
  self,
182
182
  *,
183
183
  question: str,
184
- context: object | NotGiven = NOT_GIVEN,
184
+ table: str,
185
185
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
186
186
  # The extra values given here take precedence over values defined on the client or passed to this method.
187
187
  extra_headers: Headers | None = None,
@@ -196,7 +196,7 @@ class DBResource(SyncAPIResource):
196
196
  Args:
197
197
  question: Natural language question
198
198
 
199
- context: Additional context for the query
199
+ table: Table name to query
200
200
 
201
201
  extra_headers: Send extra headers
202
202
 
@@ -211,7 +211,7 @@ class DBResource(SyncAPIResource):
211
211
  body=maybe_transform(
212
212
  {
213
213
  "question": question,
214
- "context": context,
214
+ "table": table,
215
215
  },
216
216
  db_process_nl_query_params.DBProcessNlQueryParams,
217
217
  ),
@@ -420,7 +420,7 @@ class AsyncDBResource(AsyncAPIResource):
420
420
  self,
421
421
  *,
422
422
  question: str,
423
- context: object | NotGiven = NOT_GIVEN,
423
+ table: str,
424
424
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
425
425
  # The extra values given here take precedence over values defined on the client or passed to this method.
426
426
  extra_headers: Headers | None = None,
@@ -435,7 +435,7 @@ class AsyncDBResource(AsyncAPIResource):
435
435
  Args:
436
436
  question: Natural language question
437
437
 
438
- context: Additional context for the query
438
+ table: Table name to query
439
439
 
440
440
  extra_headers: Send extra headers
441
441
 
@@ -450,7 +450,7 @@ class AsyncDBResource(AsyncAPIResource):
450
450
  body=await async_maybe_transform(
451
451
  {
452
452
  "question": question,
453
- "context": context,
453
+ "table": table,
454
454
  },
455
455
  db_process_nl_query_params.DBProcessNlQueryParams,
456
456
  ),
@@ -11,5 +11,5 @@ class DBProcessNlQueryParams(TypedDict, total=False):
11
11
  question: Required[str]
12
12
  """Natural language question"""
13
13
 
14
- context: object
15
- """Additional context for the query"""
14
+ table: Required[str]
15
+ """Table name to query"""
@@ -145,15 +145,7 @@ class TestDB:
145
145
  def test_method_process_nl_query(self, client: Worqhat) -> None:
146
146
  db = client.db.process_nl_query(
147
147
  question="How many active users do we have?",
148
- )
149
- assert_matches_type(DBProcessNlQueryResponse, db, path=["response"])
150
-
151
- @pytest.mark.skip()
152
- @parametrize
153
- def test_method_process_nl_query_with_all_params(self, client: Worqhat) -> None:
154
- db = client.db.process_nl_query(
155
- question="How many active users do we have?",
156
- context={"timeframe": "last 30 days"},
148
+ table="users",
157
149
  )
158
150
  assert_matches_type(DBProcessNlQueryResponse, db, path=["response"])
159
151
 
@@ -162,6 +154,7 @@ class TestDB:
162
154
  def test_raw_response_process_nl_query(self, client: Worqhat) -> None:
163
155
  response = client.db.with_raw_response.process_nl_query(
164
156
  question="How many active users do we have?",
157
+ table="users",
165
158
  )
166
159
 
167
160
  assert response.is_closed is True
@@ -174,6 +167,7 @@ class TestDB:
174
167
  def test_streaming_response_process_nl_query(self, client: Worqhat) -> None:
175
168
  with client.db.with_streaming_response.process_nl_query(
176
169
  question="How many active users do we have?",
170
+ table="users",
177
171
  ) as response:
178
172
  assert not response.is_closed
179
173
  assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -351,15 +345,7 @@ class TestAsyncDB:
351
345
  async def test_method_process_nl_query(self, async_client: AsyncWorqhat) -> None:
352
346
  db = await async_client.db.process_nl_query(
353
347
  question="How many active users do we have?",
354
- )
355
- assert_matches_type(DBProcessNlQueryResponse, db, path=["response"])
356
-
357
- @pytest.mark.skip()
358
- @parametrize
359
- async def test_method_process_nl_query_with_all_params(self, async_client: AsyncWorqhat) -> None:
360
- db = await async_client.db.process_nl_query(
361
- question="How many active users do we have?",
362
- context={"timeframe": "last 30 days"},
348
+ table="users",
363
349
  )
364
350
  assert_matches_type(DBProcessNlQueryResponse, db, path=["response"])
365
351
 
@@ -368,6 +354,7 @@ class TestAsyncDB:
368
354
  async def test_raw_response_process_nl_query(self, async_client: AsyncWorqhat) -> None:
369
355
  response = await async_client.db.with_raw_response.process_nl_query(
370
356
  question="How many active users do we have?",
357
+ table="users",
371
358
  )
372
359
 
373
360
  assert response.is_closed is True
@@ -380,6 +367,7 @@ class TestAsyncDB:
380
367
  async def test_streaming_response_process_nl_query(self, async_client: AsyncWorqhat) -> None:
381
368
  async with async_client.db.with_streaming_response.process_nl_query(
382
369
  question="How many active users do we have?",
370
+ table="users",
383
371
  ) as response:
384
372
  assert not response.is_closed
385
373
  assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -1,3 +0,0 @@
1
- {
2
- ".": "3.4.0"
3
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes