> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorone.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Python SDK - Endpoint Interaction

> Learn how to use the Tensor One Python SDK to interact with endpoints, run jobs synchronously or asynchronously, stream output, and manage jobs.

***

## Python SDK Setup Guide

The **Tensor One Python SDK** provides a comprehensive interface for building applications and interacting with the platform's API from your Python environment. This guide covers installation, configuration, and initial setup procedures.

***

## Installation

### Environment Setup

Create and activate a Python virtual environment to maintain clean dependency management:

| Platform | Commands |
| - | - |
| **Linux & macOS** | `python3 -m venv env` then `source env/bin/activate` |
| **Windows** | `python -m venv env` then `env\Scripts\activate` |

### SDK Installation

Install the Tensor One SDK using pip:

```bash
python -m pip install tensorone
```

***

## Verification

Confirm successful installation by checking the package details:

```bash
pip show tensorone
```

**Expected output:**

```text
Name: tensorone
Version: 1.6.1
Summary: Tensor One Python SDK for AI infrastructure
...
```

***

## Authentication Configuration

Configure authentication using environment variables for secure API access:

```python
import tensorone
import os

tensorone.api_key = os.getenv("TENSORONE_API_KEY")
```

### Security Best Practices

| Practice | Implementation |
| - | - |
| **Environment Variables** | Store API keys in `.env` files or system environment |
| **Secrets Management** | Use secure secrets managers in production environments |
| **Key Rotation** | Implement regular API key rotation policies |

**Warning:** Never hardcode API credentials directly in source code.

***

## Next Steps

With the Tensor One SDK installed and configured, you can begin:

* **Cluster Management**: Create and manage computational clusters
* **Serverless Endpoints**: Deploy and interact with serverless functions
* **Custom Workflows**: Build sophisticated AI applications with Python


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.