diff --git a/generate_docs.py b/generate_docs.py index 7fc57df4..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,14 +1178,20 @@ 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 -```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 +1201,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
@@ -1235,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(