Metadata-Version: 2.4
Name: taskdaemon
Version: 0.1.0
Summary: TaskDaemon handler SDK for Python - write task handlers in Python
Author: Jonathan James
License-Expression: MIT
Project-URL: Homepage, https://github.com/jona62/TaskDaemon-Handlers
Project-URL: Repository, https://github.com/jona62/TaskDaemon-Handlers
Project-URL: Documentation, https://taskdaemon.mintlify.app/
Keywords: taskdaemon,task,queue,handler,worker,docker
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# TaskDaemon Python SDK

## Installation

```bash
pip install taskdaemon
```

## Usage

```python
from taskdaemon import run, Task, Success, Error

def handler(task: Task) -> Success | Error:
    message = task.task_data.get("message", "")
    return Success({"echoed": message})

run(handler)
```

## Dockerfile

```dockerfile
FROM python:3.11-slim
COPY handler.py /handler.py
CMD ["python", "-u", "/handler.py"]
```
