Skip to content

Commit 5598e62

Browse files
authored
Merge pull request #176 from DataMini/release-please--branches--main--changes--next
release: 5.0.0
2 parents 9ebd9ab + 68a4538 commit 5598e62

17 files changed

+812
-59
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.7.0"
2+
".": "5.0.0"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 93
1+
configured_endpoints: 96
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-02fbb644978089e8596def9999f5729633b652fba35bf04e374dbb71e7630355.yml

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 5.0.0 (2025-03-15)
4+
5+
Full Changelog: [v4.7.0...v5.0.0](https://github.com/DataMini/asktable-python/compare/v4.7.0...v5.0.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([#173](https://github.com/DataMini/asktable-python/issues/173)) ([dba48e1](https://github.com/DataMini/asktable-python/commit/dba48e1aebe2abab983f6fe802d8605abdab82ac))
10+
* **api:** manual updates ([#175](https://github.com/DataMini/asktable-python/issues/175)) ([64bd21f](https://github.com/DataMini/asktable-python/commit/64bd21ff24dbc8a8495a48c73207fbeab1ac5082))
11+
12+
13+
### Chores
14+
15+
* remove custom code ([c1a8142](https://github.com/DataMini/asktable-python/commit/c1a81420aeb2a7eb8c6f0b32c8f84134a50e0a37))
16+
317
## 4.7.0 (2025-03-15)
418

519
Full Changelog: [v4.6.0...v4.7.0](https://github.com/DataMini/asktable-python/compare/v4.6.0...v4.7.0)

api.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ from asktable.types import (
140140
DatasourceDeleteResponse,
141141
DatasourceAddFileResponse,
142142
DatasourceDeleteFileResponse,
143+
DatasourceRetrieveRuntimeMetaResponse,
144+
DatasourceUpdateFieldResponse,
143145
)
144146
```
145147

@@ -152,6 +154,8 @@ Methods:
152154
- <code title="delete /v1/datasources/{datasource_id}">client.datasources.<a href="./src/asktable/resources/datasources/datasources.py">delete</a>(datasource_id) -> <a href="./src/asktable/types/datasource_delete_response.py">object</a></code>
153155
- <code title="post /v1/datasources/{datasource_id}/files">client.datasources.<a href="./src/asktable/resources/datasources/datasources.py">add_file</a>(datasource_id, \*\*<a href="src/asktable/types/datasource_add_file_params.py">params</a>) -> <a href="./src/asktable/types/datasource_add_file_response.py">object</a></code>
154156
- <code title="delete /v1/datasources/{datasource_id}/files/{file_id}">client.datasources.<a href="./src/asktable/resources/datasources/datasources.py">delete_file</a>(file_id, \*, datasource_id) -> <a href="./src/asktable/types/datasource_delete_file_response.py">object</a></code>
157+
- <code title="get /v1/datasources/{datasource_id}/runtime-meta">client.datasources.<a href="./src/asktable/resources/datasources/datasources.py">retrieve_runtime_meta</a>(datasource_id) -> <a href="./src/asktable/types/datasource_retrieve_runtime_meta_response.py">DatasourceRetrieveRuntimeMetaResponse</a></code>
158+
- <code title="patch /v1/datasources/{datasource_id}/field">client.datasources.<a href="./src/asktable/resources/datasources/datasources.py">update_field</a>(datasource_id, \*\*<a href="src/asktable/types/datasource_update_field_params.py">params</a>) -> <a href="./src/asktable/types/datasource_update_field_response.py">object</a></code>
155159

156160
## Meta
157161

@@ -405,3 +409,15 @@ from asktable.types import DataframeRetrieveResponse
405409
Methods:
406410

407411
- <code title="get /v1/dataframes/{dataframe_id}">client.dataframes.<a href="./src/asktable/resources/dataframes.py">retrieve</a>(dataframe_id) -> <a href="./src/asktable/types/dataframe_retrieve_response.py">DataframeRetrieveResponse</a></code>
412+
413+
# Polish
414+
415+
Types:
416+
417+
```python
418+
from asktable.types import PolishCreateResponse
419+
```
420+
421+
Methods:
422+
423+
- <code title="post /v1/polish">client.polish.<a href="./src/asktable/resources/polish.py">create</a>(\*\*<a href="src/asktable/types/polish_create_params.py">params</a>) -> <a href="./src/asktable/types/polish_create_response.py">PolishCreateResponse</a></code>

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "asktable"
3-
version = "4.7.0"
3+
version = "5.0.0"
44
description = "The official Python library for the Asktable API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/asktable/_client.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
files,
3232
roles,
3333
caches,
34+
polish,
3435
scores,
3536
answers,
3637
project,
@@ -87,6 +88,7 @@ class Asktable(SyncAPIClient):
8788
scores: scores.ScoresResource
8889
files: files.FilesResource
8990
dataframes: dataframes.DataframesResource
91+
polish: polish.PolishResource
9092
with_raw_response: AsktableWithRawResponse
9193
with_streaming_response: AsktableWithStreamedResponse
9294

@@ -131,7 +133,7 @@ def __init__(
131133
if base_url is None:
132134
base_url = os.environ.get("ASKTABLE_BASE_URL")
133135
if base_url is None:
134-
base_url = f"https://api.asktable.com"
136+
base_url = f"https://api.asktable.com/v1"
135137

136138
super().__init__(
137139
version=__version__,
@@ -164,6 +166,7 @@ def __init__(
164166
self.scores = scores.ScoresResource(self)
165167
self.files = files.FilesResource(self)
166168
self.dataframes = dataframes.DataframesResource(self)
169+
self.polish = polish.PolishResource(self)
167170
self.with_raw_response = AsktableWithRawResponse(self)
168171
self.with_streaming_response = AsktableWithStreamedResponse(self)
169172

@@ -293,6 +296,7 @@ class AsyncAsktable(AsyncAPIClient):
293296
scores: scores.AsyncScoresResource
294297
files: files.AsyncFilesResource
295298
dataframes: dataframes.AsyncDataframesResource
299+
polish: polish.AsyncPolishResource
296300
with_raw_response: AsyncAsktableWithRawResponse
297301
with_streaming_response: AsyncAsktableWithStreamedResponse
298302

@@ -337,7 +341,7 @@ def __init__(
337341
if base_url is None:
338342
base_url = os.environ.get("ASKTABLE_BASE_URL")
339343
if base_url is None:
340-
base_url = f"https://api.asktable.com"
344+
base_url = f"https://api.asktable.com/v1"
341345

342346
super().__init__(
343347
version=__version__,
@@ -370,6 +374,7 @@ def __init__(
370374
self.scores = scores.AsyncScoresResource(self)
371375
self.files = files.AsyncFilesResource(self)
372376
self.dataframes = dataframes.AsyncDataframesResource(self)
377+
self.polish = polish.AsyncPolishResource(self)
373378
self.with_raw_response = AsyncAsktableWithRawResponse(self)
374379
self.with_streaming_response = AsyncAsktableWithStreamedResponse(self)
375380

@@ -500,6 +505,7 @@ def __init__(self, client: Asktable) -> None:
500505
self.scores = scores.ScoresResourceWithRawResponse(client.scores)
501506
self.files = files.FilesResourceWithRawResponse(client.files)
502507
self.dataframes = dataframes.DataframesResourceWithRawResponse(client.dataframes)
508+
self.polish = polish.PolishResourceWithRawResponse(client.polish)
503509

504510

505511
class AsyncAsktableWithRawResponse:
@@ -526,6 +532,7 @@ def __init__(self, client: AsyncAsktable) -> None:
526532
self.scores = scores.AsyncScoresResourceWithRawResponse(client.scores)
527533
self.files = files.AsyncFilesResourceWithRawResponse(client.files)
528534
self.dataframes = dataframes.AsyncDataframesResourceWithRawResponse(client.dataframes)
535+
self.polish = polish.AsyncPolishResourceWithRawResponse(client.polish)
529536

530537

531538
class AsktableWithStreamedResponse:
@@ -552,6 +559,7 @@ def __init__(self, client: Asktable) -> None:
552559
self.scores = scores.ScoresResourceWithStreamingResponse(client.scores)
553560
self.files = files.FilesResourceWithStreamingResponse(client.files)
554561
self.dataframes = dataframes.DataframesResourceWithStreamingResponse(client.dataframes)
562+
self.polish = polish.PolishResourceWithStreamingResponse(client.polish)
555563

556564

557565
class AsyncAsktableWithStreamedResponse:
@@ -578,6 +586,7 @@ def __init__(self, client: AsyncAsktable) -> None:
578586
self.scores = scores.AsyncScoresResourceWithStreamingResponse(client.scores)
579587
self.files = files.AsyncFilesResourceWithStreamingResponse(client.files)
580588
self.dataframes = dataframes.AsyncDataframesResourceWithStreamingResponse(client.dataframes)
589+
self.polish = polish.AsyncPolishResourceWithStreamingResponse(client.polish)
581590

582591

583592
Client = Asktable

src/asktable/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "asktable"
4-
__version__ = "4.7.0" # x-release-please-version
4+
__version__ = "5.0.0" # x-release-please-version

src/asktable/resources/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@
6464
CachesResourceWithStreamingResponse,
6565
AsyncCachesResourceWithStreamingResponse,
6666
)
67+
from .polish import (
68+
PolishResource,
69+
AsyncPolishResource,
70+
PolishResourceWithRawResponse,
71+
AsyncPolishResourceWithRawResponse,
72+
PolishResourceWithStreamingResponse,
73+
AsyncPolishResourceWithStreamingResponse,
74+
)
6775
from .scores import (
6876
ScoresResource,
6977
AsyncScoresResource,
@@ -282,4 +290,10 @@
282290
"AsyncDataframesResourceWithRawResponse",
283291
"DataframesResourceWithStreamingResponse",
284292
"AsyncDataframesResourceWithStreamingResponse",
293+
"PolishResource",
294+
"AsyncPolishResource",
295+
"PolishResourceWithRawResponse",
296+
"AsyncPolishResourceWithRawResponse",
297+
"PolishResourceWithStreamingResponse",
298+
"AsyncPolishResourceWithStreamingResponse",
285299
]

0 commit comments

Comments
 (0)