Metadata-Version: 2.4
Name: spindynamics
Version: 0.3.1
Summary: Python SDK for the SpinDynamics inference routing platform
Project-URL: Homepage, https://spindynamics.net
Project-URL: Documentation, https://spindynamics.net/docs
Project-URL: Repository, https://github.com/spindynamics/sdk-python
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Python: >=3.9
Requires-Dist: build>=1.4.0
Requires-Dist: httpx>=0.24.0
Requires-Dist: twine>=6.2.0
Description-Content-Type: text/markdown

# SpinDynamics Python SDK

Official Python SDK for the SpinDynamics inference routing platform.

## Installation

```bash
pip install spindynamics
```

## Quick Start

```python
from spindynamics import Cortex

client = Cortex(api_key="sd_live_...")

deployment = client.deploy(
    model="llama-3.1-70b",
    strategy="adaptive",
    regions=["us-east-1", "eu-west-1"],
)

response = client.infer(
    deployment_id=deployment.id,
    prompt="Explain quantum computing",
    max_tokens=512,
)

print(response.text)
```

## Documentation

Full documentation at [spindynamics.net/docs](https://spindynamics.net/docs).
