semvec/pypi-packages huggingface dataset:
opensandbox-sdk 0.2.0
Python SDK for OpenSandbox - E2B-compatible sandbox platform
Requires Python: >=3.10
Keywords: cloud, code-execution, containers, e2b, opensandbox, sandbox

# opensandbox-sdk

Python SDK for [OpenSandbox](https://github.com/diggerhq/opensandbox) — an open-source, E2B-compatible sandbox platform.

## Install

```bash
pip install opensandbox-sdk
```

## Quick Start

```python
import asyncio
from opensandbox import Sandbox

async def main():
    sandbox = await Sandbox.create(template="base")

    # Execute commands
    result = await sandbox.commands.run("echo hello")
    print(result.stdout)  # "hello\n"

    # Read and write files
    await sandbox.files.write("/tmp/test.txt", "Hello, world!")
    content = await sandbox.files.read("/tmp/test.txt")

    # Clean up
    await sandbox.kill()
    await sandbox.close()

asyncio.run(main())
```

## Configuration

| Parameter  | Env Variable            | Default                 |
|------------|------------------------|-------------------------|
| `api_url`  | `OPENSANDBOX_API_URL`  | `https://app.opensandbox.ai` |
| `api_key`  | `OPENSANDBOX_API_KEY`  | (none)                  |

## License

MIT
cloman 0.1.0
Official Python SDK for the CloMan API
Requires Python: >=3.9
Keywords: ai, cloman, clone, decision-making, sdk

# CloMan Python SDK

Official Python client for the [CloMan](https://cloman.app) API — query your AI clones programmatically.

## Installation

```bash
pip install cloman
```

## Quick Start

```python
from cloman import CloMan

client = CloMan(api_key="cloman_...")
result = client.decide(context="Should we approve this refund request?")

print(result.decision)       # "approve" / "deny" / ...
print(result.confidence)     # 0.92
print(result.reasoning)      # "Based on the refund policy..."
```

## Async Usage

```python
from cloman import AsyncCloMan

async with AsyncCloMan(api_key="cloman_...") as client:
    result = await client.decide(
        context="Should we approve this refund request?",
        action_type="approval",
        data={"amount": 49.99, "reason": "defective"},
    )
    print(result.decision)
```

## Configuration

```python
client = CloMan(
    api_key="cloman_...",
    base_url="https://api.cloman.app",  # default; override for self-hosted
    timeout=30.0,                        # request timeout in seconds
    max_retries=3,                       # retries on 5xx errors
)
```

## Error Handling

```python
from cloman import CloMan
from cloman.errors import AuthenticationError, RateLimitError

client = CloMan(api_key="cloman_...")
try:
    result = client.decide(context="...")
except AuthenticationError:
    print("Invalid API key")
except RateLimitError as e:
    print(f"Rate limited: {e.message}")
```

## Requirements

- Python 3.9+
- `httpx` (installed automatically)

## Documentation

Full documentation: [docs.viwoapp.io](https://docs.viwoapp.io)

## License

MIT