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.
- worqhat-3.5.0/.release-please-manifest.json +3 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/CHANGELOG.md +16 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/PKG-INFO +3 -3
- {worqhat-3.4.0 → worqhat-3.5.0}/README.md +2 -2
- {worqhat-3.4.0 → worqhat-3.5.0}/pyproject.toml +1 -1
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_version.py +1 -1
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/resources/db.py +6 -6
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_process_nl_query_params.py +2 -2
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/api_resources/test_db.py +6 -18
- worqhat-3.4.0/.release-please-manifest.json +0 -3
- {worqhat-3.4.0 → worqhat-3.5.0}/.gitignore +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/CONTRIBUTING.md +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/LICENSE +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/SECURITY.md +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/api.md +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/bin/check-release-environment +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/bin/publish-pypi +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/examples/.keep +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/mypy.ini +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/noxfile.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/release-please-config.json +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/requirements-dev.lock +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/requirements.lock +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/__init__.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_base_client.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_client.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_compat.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_constants.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_exceptions.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_files.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_models.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_qs.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_resource.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_response.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_streaming.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_types.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/__init__.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_logs.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_proxy.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_reflection.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_resources_proxy.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_streams.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_sync.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_transform.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_typing.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/_utils/_utils.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/lib/.keep +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/py.typed +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/resources/__init__.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/resources/flows.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/resources/health.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/__init__.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_delete_records_params.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_delete_records_response.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_execute_query_params.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_execute_query_response.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_insert_record_params.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_insert_record_response.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_process_nl_query_response.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_update_records_params.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/db_update_records_response.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/flow_get_metrics_params.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/flow_get_metrics_response.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/flow_trigger_with_file_params.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/flow_trigger_with_file_response.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/flow_trigger_with_payload_params.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/flow_trigger_with_payload_response.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/get_server_info_response.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/src/worqhat/types/health_check_response.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/__init__.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/api_resources/__init__.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/api_resources/test_client.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/api_resources/test_flows.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/api_resources/test_health.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/conftest.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/sample_file.txt +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_client.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_deepcopy.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_extract_files.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_files.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_models.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_qs.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_required_args.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_response.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_streaming.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_transform.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_utils/test_proxy.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/test_utils/test_typing.py +0 -0
- {worqhat-3.4.0 → worqhat-3.5.0}/tests/utils.py +0 -0
|
@@ -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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
80
|
+
pip install worqhat[aiohttp]
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
|
|
@@ -181,7 +181,7 @@ class DBResource(SyncAPIResource):
|
|
|
181
181
|
self,
|
|
182
182
|
*,
|
|
183
183
|
question: str,
|
|
184
|
-
|
|
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
|
-
|
|
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
|
-
"
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
"
|
|
453
|
+
"table": table,
|
|
454
454
|
},
|
|
455
455
|
db_process_nl_query_params.DBProcessNlQueryParams,
|
|
456
456
|
),
|
|
@@ -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"
|
|
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
|
|
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
|
|
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
|