Skip to content

Commit dcdc990

Browse files
authored
Merge pull request #97 from DataMini/release-please--branches--main--changes--next
release: 3.12.0
2 parents ed59235 + 40e59de commit dcdc990

18 files changed

+479
-241
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-
".": "3.11.0"
2+
".": "3.12.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 91
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-907ea99ae17ecc7e5589897d8c79f0d5ebe600307720ab0fc8baf80ef5099604.yml
1+
configured_endpoints: 92
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-812fbef9135838630557abadedcc8c593c10d2133388aaea70b9a313fc546941.yml

CHANGELOG.md

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

3+
## 3.12.0 (2025-01-06)
4+
5+
Full Changelog: [v3.11.0...v3.12.0](https://github.com/DataMini/asktable-python/compare/v3.11.0...v3.12.0)
6+
7+
### Features
8+
9+
* **api:** api update ([#100](https://github.com/DataMini/asktable-python/issues/100)) ([5a7a7bf](https://github.com/DataMini/asktable-python/commit/5a7a7bff6285237055e2670247e3f0321c032ab3))
10+
* **api:** api update ([#101](https://github.com/DataMini/asktable-python/issues/101)) ([cdea94b](https://github.com/DataMini/asktable-python/commit/cdea94b1bf7ad442748dd20248d63a2b8bb22c69))
11+
* **api:** api update ([#98](https://github.com/DataMini/asktable-python/issues/98)) ([a79bc2e](https://github.com/DataMini/asktable-python/commit/a79bc2e704aa56329424db53dec64c9a6d72c9b2))
12+
* **api:** api update ([#99](https://github.com/DataMini/asktable-python/issues/99)) ([f26d038](https://github.com/DataMini/asktable-python/commit/f26d038fd85281cb46b92cb31fecabe10dda82b8))
13+
* **api:** support file management, prolong timeout ([#102](https://github.com/DataMini/asktable-python/issues/102)) ([c38851f](https://github.com/DataMini/asktable-python/commit/c38851fa9587157c56769a52cf4899e16eb2a3db))
14+
15+
16+
### Chores
17+
18+
* **internal:** codegen related update ([#96](https://github.com/DataMini/asktable-python/issues/96)) ([701403f](https://github.com/DataMini/asktable-python/commit/701403feecbfeccb6a3d507322b9dff89d398ec7))
19+
320
## 3.11.0 (2024-12-30)
421

522
Full Changelog: [v3.10.0...v3.11.0](https://github.com/DataMini/asktable-python/compare/v3.10.0...v3.11.0)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2024 Asktable
189+
Copyright 2025 Asktable
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,15 @@ client.with_options(max_retries=5).datasources.create(
202202

203203
### Timeouts
204204

205-
By default requests time out after 1 minute. You can configure this with a `timeout` option,
205+
By default requests time out after 5 minutes. You can configure this with a `timeout` option,
206206
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/#fine-tuning-the-configuration) object:
207207

208208
```python
209209
from asktable import Asktable
210210

211211
# Configure the default for all requests:
212212
client = Asktable(
213-
# 20 seconds (default is 1 minute)
213+
# 20 seconds (default is 5 minutes)
214214
timeout=20.0,
215215
)
216216

api.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,26 @@ Methods:
144144
Types:
145145

146146
```python
147-
from asktable.types import Datasource, Index, Meta, DatasourceDeleteResponse
147+
from asktable.types import (
148+
Datasource,
149+
Index,
150+
Meta,
151+
DatasourceRetrieveResponse,
152+
DatasourceDeleteResponse,
153+
DatasourceAddFileResponse,
154+
DatasourceDeleteFileResponse,
155+
)
148156
```
149157

150158
Methods:
151159

152160
- <code title="post /datasources">client.datasources.<a href="./src/asktable/resources/datasources/datasources.py">create</a>(\*\*<a href="src/asktable/types/datasource_create_params.py">params</a>) -> <a href="./src/asktable/types/datasource.py">Datasource</a></code>
153-
- <code title="get /datasources/{datasource_id}">client.datasources.<a href="./src/asktable/resources/datasources/datasources.py">retrieve</a>(datasource_id) -> <a href="./src/asktable/types/datasource.py">Datasource</a></code>
161+
- <code title="get /datasources/{datasource_id}">client.datasources.<a href="./src/asktable/resources/datasources/datasources.py">retrieve</a>(datasource_id) -> <a href="./src/asktable/types/datasource_retrieve_response.py">DatasourceRetrieveResponse</a></code>
154162
- <code title="patch /datasources/{datasource_id}">client.datasources.<a href="./src/asktable/resources/datasources/datasources.py">update</a>(datasource_id, \*\*<a href="src/asktable/types/datasource_update_params.py">params</a>) -> <a href="./src/asktable/types/datasource.py">Datasource</a></code>
155163
- <code title="get /datasources">client.datasources.<a href="./src/asktable/resources/datasources/datasources.py">list</a>(\*\*<a href="src/asktable/types/datasource_list_params.py">params</a>) -> <a href="./src/asktable/types/datasource.py">SyncPage[Datasource]</a></code>
156164
- <code title="delete /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>
157-
- <code title="post /datasources/file">client.datasources.<a href="./src/asktable/resources/datasources/datasources.py">create_from_file</a>(\*\*<a href="src/asktable/types/datasource_create_from_file_params.py">params</a>) -> <a href="./src/asktable/types/datasource.py">Datasource</a></code>
165+
- <code title="post /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>
166+
- <code title="delete /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>
158167

159168
## Meta
160169

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 = "3.11.0"
3+
version = "3.12.0"
44
description = "The official Python library for the asktable API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/asktable/_constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
66
OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
77

8-
# default timeout is 1 minute
9-
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60.0, connect=5.0)
8+
# default timeout is 5 minutes
9+
DEFAULT_TIMEOUT = httpx.Timeout(timeout=300.0, connect=5.0)
1010
DEFAULT_MAX_RETRIES = 2
1111
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
1212

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__ = "3.11.0" # x-release-please-version
4+
__version__ = "3.12.0" # x-release-please-version

0 commit comments

Comments
 (0)