From 478c4cff2bc99298f0d188ceaed876420e86818b Mon Sep 17 00:00:00 2001 From: Chirag Jain Date: Tue, 4 Nov 2025 15:16:00 +0530 Subject: [PATCH 1/2] Update example in Quickstart --- generate_docs.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/generate_docs.py b/generate_docs.py index 7fc57df4..27554f18 100644 --- a/generate_docs.py +++ b/generate_docs.py @@ -1180,12 +1180,14 @@ def _generate_home_page(self, client_modules: Dict[str, ClientModuleInfo], outpu ## Quick Example -```python lines + + +```python Initialize With API Key lines from truefoundry import TrueFoundry # Initialize the client client = TrueFoundry( - base_url="https://api.truefoundry.com", + base_url="https://your-control-plane-url.truefoundry.com", api_key="your_api_key" ) @@ -1195,6 +1197,17 @@ def _generate_home_page(self, client_modules: Dict[str, ClientModuleInfo], outpu print(f"Application: {app.name}") ``` +```python Using Existing Login Session lines +from truefoundry import client + +# List your applications +applications = client.applications.list() +for app in applications: + print(f"Application: {app.name}") +``` + + + ## Available Clients
From dc4517a2cfc61adb5e67e39dbff3fcf6c11b2c11 Mon Sep 17 00:00:00 2001 From: Chirag Jain Date: Tue, 4 Nov 2025 16:10:41 +0530 Subject: [PATCH 2/2] Update script --- generate_docs.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/generate_docs.py b/generate_docs.py index 27554f18..bc6d984d 100644 --- a/generate_docs.py +++ b/generate_docs.py @@ -1170,7 +1170,7 @@ def _generate_home_page(self, client_modules: Dict[str, ClientModuleInfo], outpu template = Template("""--- title: "TrueFoundry Python SDK" -description: "Complete Python SDK for TrueFoundry - Build, deploy, and manage ML applications" +description: "Complete Python SDK for TrueFoundry - Access and manage resources on TrueFoundry" --- ## Installation @@ -1178,6 +1178,10 @@ def _generate_home_page(self, client_modules: Dict[str, ClientModuleInfo], outpu pip install truefoundry ``` + +Looking for TypeScript SDK? Check out the [TrueFoundry TypeScript SDK](https://www.npmjs.com/package/truefoundry-sdk) + + ## Quick Example @@ -1248,12 +1252,6 @@ def _generate_home_page(self, client_modules: Dict[str, ClientModuleInfo], outpu - **Documentation**: Browse through the client documentation above - **GitHub**: [TrueFoundry Python SDK](https://github.com/truefoundry/truefoundry-python-sdk) - **Support**: Reach out to our support team for assistance - ---- - -
- Built with ❤️ by the TrueFoundry team -
""") content = template.render(