Skip to main content

Task Bus SDK for Python (Redis Broker)

Project description

task-hub-sdk-redis

Redis Streams provider for the Task Bus Python SDK.

Usage

from task_hub_sdk_redis import BaseWorker, RedisProvider, start_worker
from task_hub_sdk import ProviderConfig

class MyWorker(BaseWorker):
    def process_task(self, msg_id, body) -> bool:
        return True

# Convenience helper
start_worker(MyWorker(queue_name="tts"))

# Explicit provider
start_worker(MyWorker(), RedisProvider(), ProviderConfig(queue_name="tts"))

Configuration

  • REDIS_URL: Redis connection URL (default: redis://localhost:6379)
  • SERVER_URL: Task Bus Server URL (default: http://localhost:8080)
  • REDIS_GROUP: Consumer group name (default: task_bus_group)
  • REDIS_CONSUMER: Consumer name (default: hostname + pid)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

task_hub_sdk_redis-1.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file task_hub_sdk_redis-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: task_hub_sdk_redis-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for task_hub_sdk_redis-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1651e6e46aea3e763b435bc82fe75aec1884503b16f3e61e45259b8cbf58702
MD5 f2ffc6c853c09236a0b1ff9761726a5f
BLAKE2b-256 0d21c438f5835a0f01886046a64d2db7c9de061073635516c25c97563e6f28bb

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