Skip to content
Merged
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
29 changes: 20 additions & 9 deletions generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,22 +1170,28 @@ 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

```bash
pip install truefoundry
```

<Tip>
Looking for TypeScript SDK? Check out the [TrueFoundry TypeScript SDK](https://www.npmjs.com/package/truefoundry-sdk)
</Tip>

## Quick Example

```python lines
<CodeGroup>

```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"
)

Expand All @@ -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}")
```

</CodeGroup>

## Available Clients

<div className="space-y-0">
Expand Down Expand Up @@ -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

---

<div className="text-center text-sm text-gray-500 mt-12">
Built with ❤️ by the TrueFoundry team
</div>
""")

content = template.render(
Expand Down