Metadata-Version: 2.4
Name: mixtrain
Version: 0.1.2
Summary: Mixtrain SDK and CLI
Author-email: Dharmesh Kakadia <dharmesh.kakadia@gmail.com>
Requires-Python: >=3.10
Requires-Dist: duckdb>=1.3.2
Requires-Dist: httpx>=0.28.1
Requires-Dist: modal>=0.68.0
Requires-Dist: pandas>=2.3.1
Requires-Dist: polars>=1.32.0
Requires-Dist: pydantic>=2.11.7
Requires-Dist: pyiceberg[pyarrow,sql-postgres]>=0.9.1
Requires-Dist: rich>=13.0.0
Requires-Dist: textual>=5.0.1
Requires-Dist: typer>=0.16.0
Provides-Extra: test
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'test'
Requires-Dist: pytest-httpx>=0.21.0; extra == 'test'
Requires-Dist: pytest-mock>=3.10.0; extra == 'test'
Requires-Dist: pytest>=7.0.0; extra == 'test'
Description-Content-Type: text/markdown

# Mixtrain

**Mixtrain** is a Python SDK and CLI for [mixtrain.ai](https://mixtrain.ai) platform.

## Installation

Using uv
```bash
uv add mixtrain
```
or if you use pip

```bash
pip install mixtrain
```

To install mixtrain CLI globally, using uv

```bash
uv tool install mixtrain
```
or if you use pipx

```bash
pipx mixtrain
```

## Quick Start

### Authentication

#### Option 1: Interactive Login (Development)

```bash
mixtrain login
```

#### Option 2: API Key (Production/Automation)

For production deployments, CI/CD, or automated scripts, use API key authentication:

```bash
# Set your API key as an environment variable
export MIXTRAIN_API_KEY=mix-your-api-key-here

# Now you can use mixtrain without login
mixtrain workspace list
```

Or in Python:

```python
import os
os.environ['MIXTRAIN_API_KEY'] = 'mix-your-api-key-here'

import mixtrain.client as mix
configs = mix.list_routing_configs()  # Works without login
```

Get your API key from the [mixtrain.ai dashboard](https://app.mixtrain.ai).

### CLI Usage

Refer to `mixtrain --help` for the full list of commands.

### Python SDK

Refer to https://mixtrain.ai for more details.