You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,25 @@
1
1
# Changelog
2
2
3
+
## 3.1.0 (2024-10-13)
4
+
5
+
Full Changelog: [v3.0.0...v3.1.0](https://github.com/DataMini/asktable-python/compare/v3.0.0...v3.1.0)
6
+
7
+
### Features
8
+
9
+
***api:** api update ([#10](https://github.com/DataMini/asktable-python/issues/10)) ([4cbdddc](https://github.com/DataMini/asktable-python/commit/4cbdddc99448537b9bb986ce647ca048ab807413))
10
+
***api:** api update ([#11](https://github.com/DataMini/asktable-python/issues/11)) ([f8e9649](https://github.com/DataMini/asktable-python/commit/f8e9649d2d956ad02735ad67f107576d1d9a7b35))
11
+
***api:** api update ([#12](https://github.com/DataMini/asktable-python/issues/12)) ([8ac4185](https://github.com/DataMini/asktable-python/commit/8ac41859c959e8685213202e85d25b1280fca209))
12
+
***api:** api update ([#13](https://github.com/DataMini/asktable-python/issues/13)) ([c7f3137](https://github.com/DataMini/asktable-python/commit/c7f31371476e5896dcf230b95f7645f2b5fa42d0))
13
+
***api:** api update ([#7](https://github.com/DataMini/asktable-python/issues/7)) ([230366d](https://github.com/DataMini/asktable-python/commit/230366dd4f8c19062e7850df73220a025213e221))
14
+
***api:** api update ([#8](https://github.com/DataMini/asktable-python/issues/8)) ([234cd71](https://github.com/DataMini/asktable-python/commit/234cd71631cb05afac371bc2ad741514d71b15ab))
15
+
***api:** api update ([#9](https://github.com/DataMini/asktable-python/issues/9)) ([0956b01](https://github.com/DataMini/asktable-python/commit/0956b0100295717552c61de84b38900b57b36984))
16
+
17
+
18
+
### Chores
19
+
20
+
***internal:** codegen related update ([#4](https://github.com/DataMini/asktable-python/issues/4)) ([df56af1](https://github.com/DataMini/asktable-python/commit/df56af1e43756716339314650602d8cf3b00b781))
21
+
***internal:** codegen related update ([#6](https://github.com/DataMini/asktable-python/issues/6)) ([6403369](https://github.com/DataMini/asktable-python/commit/640336989f2bf2157a6817dccb06a7f030c45346))
22
+
3
23
## 3.0.0 (2024-09-30)
4
24
5
25
Full Changelog: [v0.0.1-alpha.0...v3.0.0](https://github.com/DataMini/asktable-python/compare/v0.0.1-alpha.0...v3.0.0)
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+24-20Lines changed: 24 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,13 @@
2
2
3
3
### With Rye
4
4
5
-
We use [Rye](https://rye.astral.sh/) to manage dependencies so we highly recommend [installing it](https://rye.astral.sh/guide/installation/) as it will automatically provision a Python environment with the expected Python version.
5
+
We use [Rye](https://rye.astral.sh/) to manage dependencies because it will automatically provision a Python environment with the expected Python version. To set it up, run:
6
6
7
-
After installing Rye, you'll just have to run this command:
7
+
```sh
8
+
$ ./scripts/bootstrap
9
+
```
10
+
11
+
Or [install Rye manually](https://rye.astral.sh/guide/installation/) and run:
8
12
9
13
```sh
10
14
$ rye sync --all-features
@@ -39,17 +43,17 @@ modify the contents of the `src/asktable/lib/` and `examples/` directories.
39
43
40
44
All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.
41
45
42
-
```bash
46
+
```py
43
47
# add an example to examples/<your-example>.py
44
48
45
49
#!/usr/bin/env -S rye run python
46
50
…
47
51
```
48
52
49
-
```
50
-
chmod +x examples/<your-example>.py
53
+
```sh
54
+
$ chmod +x examples/<your-example>.py
51
55
# run the example against your api
52
-
./examples/<your-example>.py
56
+
$ ./examples/<your-example>.py
53
57
```
54
58
55
59
## Using the repository from source
@@ -58,8 +62,8 @@ If you’d like to use the repository from source, you can either install from g
project= response.parse() # get the object that `sys.projects.create()` would have returned
207
-
print(project.id)
206
+
datasource= response.parse() # get the object that `datasources.create()` would have returned
207
+
print(datasource.id)
208
208
```
209
209
210
210
These methods return an [`APIResponse`](https://github.com/DataMini/asktable-python/tree/main/src/asktable/_response.py) object.
@@ -218,8 +218,9 @@ The above interface eagerly reads the full response body when you make the reque
218
218
To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
219
219
220
220
```python
221
-
with client.sys.projects.with_streaming_response.create(
222
-
name="name",
221
+
with client.datasources.with_streaming_response.create(
222
+
access_config={},
223
+
engine="mysql",
223
224
) as response:
224
225
print(response.headers.get("X-My-Header"))
225
226
@@ -321,3 +322,7 @@ print(asktable.__version__)
321
322
## Requirements
322
323
323
324
Python 3.7 or higher.
325
+
326
+
## Contributing
327
+
328
+
See [the contributing documentation](./CONTRIBUTING.md).
0 commit comments