Return to Arsenal
Task Queue/Python · Redis

Kew

A fast, Redis-backed task queue manager for Python. Simple API for distributed task processing with reliability built in.

Origin

Distributed task processing shouldn't require a PhD in message brokers. Kew distills the complexity of task queues into a clean Python API, backed by Redis's battle-tested reliability. Declare a task with a decorator, enqueue it with a call, and let Kew handle the rest — retries, priorities, dead letters, all of it.

Attributes

Redis-backed
Redis-backed
Python
Python
55
Stars

Capabilities

  • Redis-backed persistence for guaranteed delivery
  • Decorator-based task definition — zero boilerplate
  • Automatic retries with configurable backoff strategies
  • Priority queues for critical-path tasks
  • Dead letter queues for failed task inspection
  • Real-time task monitoring and status tracking

Invoke

python
from kew import TaskQueue

queue = TaskQueue(redis_url="redis://localhost")

@queue.task(retries=3, priority="high")
async def process_image(url: str):
    image = await download(url)
    thumbnail = resize(image, width=256)
    return {"status": "complete", "url": thumbnail.url}

# Enqueue from anywhere
await process_image.enqueue("https://example.com/photo.jpg")