Metadata-Version: 2.4
Name: dadascribe
Version: 0.1.0
Summary: Python wrapper for the DaDaScribe API
Project-URL: Homepage, https://api.dadascribe.com/
Project-URL: Repository, https://github.com/PatzEdi/dadascribe-api-python/
Project-URL: Bug Tracker, https://github.com/PatzEdi/dadascribe-api-python/issues
Author-email: PatzEdi <patzedigithub@gmail.com>, Fabrizio Ferrari <fabriziovsm@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: diarization,transcriptions,whisper
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.13
Requires-Dist: requests
Description-Content-Type: text/markdown

# Python wrapper for the DaDaScribe API

The official DaDaScribe API wrapper in Python.

![DaDaScribe Logo](https://www.dadascribe.com/images/DaDaScribeLogo.svg)

## CLI Interface
The wrapper offers a CLI interface.

To start a job, for example:
```bash
$ dadascribe --source "link/to/youtube/or/path/to/file"
{
  "status": "ok",
  "id": "a7wuTaPrebOqheE0",
  "count": 1
}
```

Check a job status:
```bash
$ dadascribe --status a7wuTaPrebOqheE0
```

Easily download results of a completed job:
```bash
$ dadadascribe --download a7wuTaPrebOqheE0
```

## Python API
The wrapper offers a Python API.

```python
from dadascribe import ScribeAPIWrapper
api_key = ... # e.g. from an environment variable, as str
w = ScribeAPIWrapper(api_key)

# Example transcription:
trsc_result = w.transcribe(
    source="youtube/link/or/path/to/file",
    source_language="en",
    destination_language="es,it",
)
```


## Development
```bash
pip3 install -e .
```

Make sure to run the tests as well via the run_tests.sh script:
```bash
chmod +x run_tests.sh
./run_tests.sh
```
