Skip to main content

TaskDaemon handler SDK for Python - write task handlers in Python

Project description

TaskDaemon Python SDK

Installation

pip install taskdaemon

Usage

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taskdaemon-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taskdaemon-0.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file taskdaemon-0.1.0.tar.gz.

File metadata

  • Download URL: taskdaemon-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for taskdaemon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0076f633d5fe8f1167f2fc7eda136f6262599fcf4d09a355561de7f4ba3486f0
MD5 af770d05baff490a0de456b46bc04d85
BLAKE2b-256 ad32f9cca3dd6d1789f8952583edcfcc83f3108f471a5f6aa6538bf0e8a96be5

See more details on using hashes here.

File details

Details for the file taskdaemon-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: taskdaemon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for taskdaemon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e11ee4cf8c37aa7daf375f06e0ee7610454e624f5aa3d1d90dc076748532ab7
MD5 947b81c66e7f3cdd7569df11724e946b
BLAKE2b-256 b98c7ff518af8281cabb1a48e20e0ffee6457f9f54b45780ef1c7db47745d7fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page