semvec/pypi-packages huggingface dataset:
deplace-cli 0.1.54
A CLI tool to access Deplace Datasets.
License: MIT
Requires Python: >=3.7

# Deplace CLI 

`deplace-cli` is a command-line tool to interact with Deplace datasets. 

## 🚀 Usage

The CLI supports the following commands:

- download —> Download a file or folder from Deplace's Storage. (Requires Access Token)
- annotate —> Annotate a video episode with optional bounding boxes, masks, and labels.

### 📥 Command: `download`

Download data from Deplace's Storage. 

**Required arguments:**
- `--token` — Your Azure access token. (With quotes)
- `--path` — Path to the file/folder to download.
- `--dataset`- Name of the dataset to download.
- `--limit` — Limit the number of mp4 files to download (default: 0 means no limit).

**Example:**
```
deplace download \
    --token SAS_TOKEN 
    --path /path/to/resource
    --dataset sample
```

### 🖊️ Command: `annotate`

Annotate a video episode with optional overlays and save the output. *Only works after dataset download*

**Optional arguments:**
- `--output_folder` — Where to save the annotated video (default: annotated/)
- `--bbox` — Enable bounding box annotations
- `--mask` — Enable mask annotations
- `--label` — Enable label annotations
- `--compression` — Video compression codec (avc1, mp4v, h264) — default: mp4v

**Example:**
```
deplace annotate \
    --episode V1_E2 \
    --bbox \
    --mask \
    --label \
    --compression mp4v
```
openai-async-utils 0.1.2
Async helpers for OpenAI chat
License: MIT
Keywords: openai, asyncio, utility

# openai-async-utils

Lightweight async helpers for OpenAI chat completions:
- **call_openai_api**: one-shot request with retries.
- **stream_openai_api**: yields response chunks with retries.

---

## Install

```bash
pip install openai-async-utils
export OPENAI_API_KEY="sk-…"
````

You can also pass `api_key="sk-…"` directly to functions.

---

## Quick Example

```python
import asyncio
from openai_utils import call_openai_api, stream_openai_api

async def main():
    sys = "You are a helpful assistant."
    prev = [{"role": "user", "content": "Hello!"}]

    # Full response
    text, usage = await call_openai_api(sys, prev)
    print(text, usage)

    # Streaming response
    async for chunk in stream_openai_api(sys, prev):
        print(chunk, end="")

asyncio.run(main())
```

---

## API

* **call\_openai\_api(system\_prompt, previous\_prompts, api\_key=None, validation\_schema=None, model="gpt-3.5-turbo", max\_attempts=3)**
  Returns `(response_str, {"prompt_tokens":…, "completion_tokens":…, "total_tokens":…})`.

* **stream\_openai\_api(system\_prompt, previous\_prompts, api\_key=None, model="gpt-3.5-turbo", max\_attempts=3)**
  Async generator yielding text chunks.

---

## License

MIT