Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"cliVersion": "5.59.0",
"cliVersion": "5.82.0",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "5.15.0",
"generatorVersion": "5.24.0",
"generatorConfig": {
"package_name": "truefoundry_sdk",
"use_request_defaults": "all",
Expand All @@ -22,7 +22,7 @@
"numpydoc": ">=1.7.0,<2.0.0"
}
},
"originGitCommit": "32fe60c676059f66eca28ed6042c72b38db2ff04",
"originGitCommit": "37506419fb22bb29b74d5d9178400b8f96c7e594",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "0.0.0",
Expand Down
54 changes: 3 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ A full reference for this library is available [here](https://github.com/truefou
Instantiate and use the client with the following:

```python
from truefoundry_sdk import TrueFoundry, ApplicationType
from truefoundry_sdk.applications import ApplicationsListRequestDeviceTypeFilter, ApplicationsListRequestLifecycleStage
from truefoundry_sdk import TrueFoundry

client = TrueFoundry(
api_key="<token>",
Expand All @@ -52,21 +51,6 @@ client = TrueFoundry(
client.applications.list(
limit=10,
offset=0,
application_id="applicationId",
workspace_id="workspaceId",
application_name="applicationName",
fqn="fqn",
workspace_fqn="workspaceFqn",
application_type=ApplicationType.ASYNC_SERVICE,
name_search_query="nameSearchQuery",
environment_id="environmentId",
cluster_id="clusterId",
application_set_id="applicationSetId",
paused=True,
device_type_filter=ApplicationsListRequestDeviceTypeFilter.CPU,
last_deployed_by_subjects="lastDeployedBySubjects",
lifecycle_stage=ApplicationsListRequestLifecycleStage.ACTIVE,
is_recommendation_present_and_visible=True,
)
```

Expand All @@ -76,7 +60,6 @@ The SDK also exports an `async` client so that you can make non-blocking calls t

```python
import asyncio
from truefoundry_sdk.applications import ApplicationsListRequestDeviceTypeFilter, ApplicationsListRequestLifecycleStage

from truefoundry_sdk import AsyncTrueFoundry

Expand All @@ -90,21 +73,6 @@ async def main() -> None:
await client.applications.list(
limit=10,
offset=0,
application_id="applicationId",
workspace_id="workspaceId",
application_name="applicationName",
fqn="fqn",
workspace_fqn="workspaceFqn",
application_type=ApplicationType.ASYNC_SERVICE,
name_search_query="nameSearchQuery",
environment_id="environmentId",
cluster_id="clusterId",
application_set_id="applicationSetId",
paused=True,
device_type_filter=ApplicationsListRequestDeviceTypeFilter.CPU,
last_deployed_by_subjects="lastDeployedBySubjects",
lifecycle_stage=ApplicationsListRequestLifecycleStage.ACTIVE,
is_recommendation_present_and_visible=True,
)


Expand All @@ -131,8 +99,7 @@ except ApiError as e:
Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object.

```python
from truefoundry_sdk import TrueFoundry, ApplicationType
from truefoundry_sdk.applications import ApplicationsListRequestDeviceTypeFilter, ApplicationsListRequestLifecycleStage
from truefoundry_sdk import TrueFoundry

client = TrueFoundry(
api_key="<token>",
Expand All @@ -142,21 +109,6 @@ client = TrueFoundry(
client.applications.list(
limit=10,
offset=0,
application_id="applicationId",
workspace_id="workspaceId",
application_name="applicationName",
fqn="fqn",
workspace_fqn="workspaceFqn",
application_type=ApplicationType.ASYNC_SERVICE,
name_search_query="nameSearchQuery",
environment_id="environmentId",
cluster_id="clusterId",
application_set_id="applicationSetId",
paused=True,
device_type_filter=ApplicationsListRequestDeviceTypeFilter.CPU,
last_deployed_by_subjects="lastDeployedBySubjects",
lifecycle_stage=ApplicationsListRequestLifecycleStage.ACTIVE,
is_recommendation_present_and_visible=True,
)
```

Expand Down Expand Up @@ -233,7 +185,7 @@ client = TrueFoundry(..., timeout=20.0)

# Override timeout for a specific method
client.applications.list(..., request_options={
"timeout_in_seconds": 1
"timeout": 1
})
```

Expand Down
724 changes: 344 additions & 380 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Repository = 'https://github.com/truefoundry/truefoundry-python-sdk'
python = ">=3.10"
aiohttp = { version = ">=3.14.1,<4", optional = true, python = ">=3.10"}
httpx = ">=0.21.2"
httpx-aiohttp = { version = "0.1.8", optional = true, python = ">=3.10"}
httpx-aiohttp = { version = "^0.1.8", optional = true, python = ">=3.10"}
pydantic = ">= 1.9.2"
pydantic-core = ">=2.18.2,<3.0.0"
typing_extensions = ">= 4.0.0"
Expand Down
Loading
Loading