Skip to content

Commit bba2029

Browse files
authored
Merge pull request #6 from Vitable-Inc/release-please--branches--main--changes--next
release: 0.2.0
2 parents 0189a46 + ec65cf0 commit bba2029

File tree

112 files changed

+2463
-8681
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+2463
-8681
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: CI
22
on:
33
push:
4-
branches-ignore:
5-
- 'generated'
6-
- 'codegen/**'
7-
- 'integrated/**'
8-
- 'stl-preview-head/**'
9-
- 'stl-preview-base/**'
4+
branches:
5+
- '**'
6+
- '!integrated/**'
7+
- '!stl-preview-head/**'
8+
- '!stl-preview-base/**'
9+
- '!generated'
10+
- '!codegen/**'
11+
- 'codegen/stl/**'
1012
pull_request:
1113
branches-ignore:
1214
- 'stl-preview-head/**'

.release-please-manifest.json

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

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 29
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/vitable%2Fvitable-connect-da7778e69a30f55bdfb58bc3df94cefe7b13a37eee9640eac1aaf43f57a8d149.yml
3-
openapi_spec_hash: 031c9c1d1a6be156666b3230e0b9fb44
4-
config_hash: 686598ed50ce0ac460d9a06417655317
1+
configured_endpoints: 14
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/vitable%2Fvitable-connect-96aa195ab5ff283707620b70fbed7282883a1e1753459f0a694d01d6f19f50e0.yml
3+
openapi_spec_hash: b2f25ba22786e88520ed918b8b5120a5
4+
config_hash: c07379344c812867e0b75b41995c76c2

CHANGELOG.md

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

3+
## 0.2.0 (2026-03-20)
4+
5+
Full Changelog: [v0.1.2...v0.2.0](https://github.com/Vitable-Inc/vitable-connect-python/compare/v0.1.2...v0.2.0)
6+
7+
### Features
8+
9+
* **api:** api update ([2d17eba](https://github.com/Vitable-Inc/vitable-connect-python/commit/2d17ebab7f730aa1a9a9cba0044d7bd1f05ef3d7))
10+
* **api:** manual updates ([61e9959](https://github.com/Vitable-Inc/vitable-connect-python/commit/61e9959f83e9d2de1c974e9d04349efba0c03589))
11+
* **api:** manual updates ([311d294](https://github.com/Vitable-Inc/vitable-connect-python/commit/311d294e50fb62fde627e0e0619064ff05018cb7))
12+
* **api:** manual updates ([81fa03e](https://github.com/Vitable-Inc/vitable-connect-python/commit/81fa03e7036aeb56052384dfbd31de5f554d2d74))
13+
14+
15+
### Bug Fixes
16+
17+
* **deps:** bump minimum typing-extensions version ([4f315a4](https://github.com/Vitable-Inc/vitable-connect-python/commit/4f315a4488437d128364f288ae1a2e526aceb639))
18+
* **pydantic:** do not pass `by_alias` unless set ([7d698a1](https://github.com/Vitable-Inc/vitable-connect-python/commit/7d698a13ec079a12c7681ce236abf4aa9ea765fa))
19+
* sanitize endpoint path params ([5d252df](https://github.com/Vitable-Inc/vitable-connect-python/commit/5d252df080bd65d8227cff938a47fc2c0be43c64))
20+
21+
22+
### Chores
23+
24+
* **internal:** tweak CI branches ([96b210d](https://github.com/Vitable-Inc/vitable-connect-python/commit/96b210d9f4ace8c61d48775f1cf840e8fcb18d44))
25+
* update SDK settings ([b5d7c3a](https://github.com/Vitable-Inc/vitable-connect-python/commit/b5d7c3a4a61e8b7beb84a7c2c184d1c4237b324a))
26+
* update SDK settings ([5749036](https://github.com/Vitable-Inc/vitable-connect-python/commit/57490368bcb31217dc0c9ca08d7757f1c3f03400))
27+
* update SDK settings ([f29a924](https://github.com/Vitable-Inc/vitable-connect-python/commit/f29a9244a92c5205cd978c2adc176b9428c0be4f))
28+
329
## 0.1.2 (2026-03-15)
430

531
Full Changelog: [v0.1.1...v0.1.2](https://github.com/Vitable-Inc/vitable-connect-python/compare/v0.1.1...v0.1.2)

README.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,77 @@ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typ
116116

117117
Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.
118118

119+
## Pagination
120+
121+
List methods in the Vitable Connect API are paginated.
122+
123+
This library provides auto-paginating iterators with each list response, so you do not have to request successive pages manually:
124+
125+
```python
126+
from vitable_connect import VitableConnect
127+
128+
client = VitableConnect()
129+
130+
all_employees = []
131+
# Automatically fetches more pages as needed.
132+
for employee in client.employees.list_enrollments(
133+
employee_id="empl_abc123def456",
134+
):
135+
# Do something with employee here
136+
all_employees.append(employee)
137+
print(all_employees)
138+
```
139+
140+
Or, asynchronously:
141+
142+
```python
143+
import asyncio
144+
from vitable_connect import AsyncVitableConnect
145+
146+
client = AsyncVitableConnect()
147+
148+
149+
async def main() -> None:
150+
all_employees = []
151+
# Iterate through items across all pages, issuing requests as needed.
152+
async for employee in client.employees.list_enrollments(
153+
employee_id="empl_abc123def456",
154+
):
155+
all_employees.append(employee)
156+
print(all_employees)
157+
158+
159+
asyncio.run(main())
160+
```
161+
162+
Alternatively, you can use the `.has_next_page()`, `.next_page_info()`, or `.get_next_page()` methods for more granular control working with pages:
163+
164+
```python
165+
first_page = await client.employees.list_enrollments(
166+
employee_id="empl_abc123def456",
167+
)
168+
if first_page.has_next_page():
169+
print(f"will fetch next page using these details: {first_page.next_page_info()}")
170+
next_page = await first_page.get_next_page()
171+
print(f"number of items we just fetched: {len(next_page.data)}")
172+
173+
# Remove `await` for non-async usage.
174+
```
175+
176+
Or just work directly with the returned data:
177+
178+
```python
179+
first_page = await client.employees.list_enrollments(
180+
employee_id="empl_abc123def456",
181+
)
182+
183+
print(f"page number: {first_page.pagination.page}") # => "page number: 1"
184+
for employee in first_page.data:
185+
print(employee.id)
186+
187+
# Remove `await` for non-async usage.
188+
```
189+
119190
## Nested params
120191

121192
Nested parameters are dictionaries, typed using `TypedDict`, for example:

0 commit comments

Comments
 (0)