Metadata-Version: 2.4
Name: colabone-python
Version: 1.0.0
Summary: Python SDK for the ColabOne API — unified access to multiple AI models
Author-email: vishwaaareddy-commits <vishwaaareddy@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/colabintelligence-source/colabone-python
Keywords: colabone,ai,llm,sdk,openai,claude,anthropic
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.27.0

# colabone-python

Python SDK for the ColabOne API — unified async access to multiple AI models (Claude, GPT, etc.).

## Installation

```bash
pip install colabone-python
```

## Quick Start

```python
import asyncio
from colabone import ColabOne

async def main():
    client = ColabOne(api_key="your-api-key")

    response = await client.chat.completions.create(
        model="claude-sonnet-4-6",
        messages=[{"role": "user", "content": "Hello!"}],
        max_tokens=200,
    )
    print(response["choices"][0]["message"]["content"])

    await client.close()

asyncio.run(main())
```

## Streaming

```python
response = await client.chat.completions.create(
    model="claude-sonnet-4-6",
    stream=True,
    messages=[{"role": "user", "content": "Hello!"}],
    max_tokens=200,
)
async for chunk in response:
    delta = chunk.get("choices", [{}])[0].get("delta", {})
    print(delta.get("content") or "", end="", flush=True)
```

## License

MIT
