Skip to content

Commit 23a5ab0

Browse files
Update SDK 2025-12-10 (#46)
* SDK regeneration * Fix patching --------- Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent bfedb80 commit 23a5ab0

File tree

257 files changed

+3652
-2028
lines changed

Some content is hidden

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

257 files changed

+3652
-2028
lines changed

.fern/metadata.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"cliVersion": "3.5.0",
3+
"generatorName": "fernapi/fern-python-sdk",
4+
"generatorVersion": "4.45.1",
5+
"generatorConfig": {
6+
"package_name": "truefoundry_sdk",
7+
"pydantic_config": {
8+
"enum_type": "python_enums",
9+
"use_provided_defaults": true,
10+
"frozen": false
11+
},
12+
"client": {
13+
"class_name": "BaseTrueFoundry",
14+
"filename": "base_client.py",
15+
"exported_class_name": "TrueFoundry",
16+
"exported_filename": "client.py"
17+
},
18+
"pyproject_python_version": ">=3.8",
19+
"extra_dev_dependencies": {
20+
"ipython": ">=8.0.0,<10.0.0",
21+
"Jinja2": ">=3.1.6,<4.0.0",
22+
"numpydoc": ">=1.7.0,<2.0.0"
23+
}
24+
}
25+
}

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ This library provides convenient access to the TrueFoundry API.
1111
> - TypeScript: [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/truefoundry/truefoundry-typescript-sdk)
1212
1313

14+
## Table of Contents
15+
16+
- [Installation](#installation)
17+
- [Reference](#reference)
18+
- [Usage](#usage)
19+
- [Async Client](#async-client)
20+
- [Exception Handling](#exception-handling)
21+
- [Pagination](#pagination)
22+
- [Advanced](#advanced)
23+
- [Access Raw Response Data](#access-raw-response-data)
24+
- [Retries](#retries)
25+
- [Timeouts](#timeouts)
26+
- [Custom Client](#custom-client)
27+
- [Contributing](#contributing)
28+
1429
## Installation
1530

1631
```sh
@@ -152,6 +167,15 @@ for page in response.iter_pages():
152167
yield page
153168
```
154169

170+
```python
171+
# You can also iterate through pages and access the typed response per page
172+
pager = client.users.list(...)
173+
for page in pager.iter_pages():
174+
print(page.response) # access the typed response for each page
175+
for item in page:
176+
print(item)
177+
```
178+
155179
## Advanced
156180

157181
### Access Raw Response Data
@@ -169,11 +193,11 @@ response = client.applications.with_raw_response.list(...)
169193
print(response.headers) # access the response headers
170194
print(response.data) # access the underlying object
171195
pager = client.users.list(...)
172-
print(pager.response.headers) # access the response headers for the first page
196+
print(pager.response) # access the typed response for the first page
173197
for item in pager:
174198
print(item) # access the underlying object(s)
175199
for page in pager.iter_pages():
176-
print(page.response.headers) # access the response headers for each page
200+
print(page.response) # access the typed response for each page
177201
for item in page:
178202
print(item) # access the underlying object(s)
179203
```

poetry.lock

Lines changed: 46 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[project]
22
name = "truefoundry-sdk"
3+
dynamic = ["version"]
34

45
[tool.poetry]
56
name = "truefoundry-sdk"
@@ -44,6 +45,7 @@ typing_extensions = ">= 4.0.0"
4445
mypy = "==1.13.0"
4546
pytest = "^7.4.0"
4647
pytest-asyncio = "^0.23.5"
48+
pytest-xdist = "^3.6.1"
4749
python-dateutil = "^2.9.0"
4850
types-python-dateutil = "^2.9.0.20240316"
4951
Jinja2 = ">=3.1.6,<4.0.0"

0 commit comments

Comments
 (0)