dramatiq: Fast & Reliable Background Task Processing for Python 3

This repository profile is provided by osrepos.com, an open source repository discovery platform.

dramatiq: Fast & Reliable Background Task Processing for Python 3

Summary

dramatiq is a powerful and efficient Python 3 library designed for processing background tasks. It enables developers to offload time-consuming operations to a separate process, improving application responsiveness. With robust support for message brokers like RabbitMQ and Redis, dramatiq ensures reliable and scalable task execution.

Repository Information

Analyzed by OSRepos on August 5, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

dramatiq is a powerful and efficient Python 3 library designed for processing background tasks. It offers a fast and reliable way for applications to offload long-running or resource-intensive operations, ensuring that the main application thread remains responsive. By leveraging message brokers like RabbitMQ and Redis, dramatiq facilitates robust and scalable distributed task execution, making your applications more performant and resilient.

Installation

To get started with dramatiq, you can install it via pip. Choose the installation method based on your preferred message broker:

If you want to use it with RabbitMQ:

pip install 'dramatiq[rabbitmq, watch]'

Or if you want to use it with Redis:

pip install 'dramatiq[redis, watch]'

Examples

Here's a quickstart example demonstrating how to define and dispatch a background task using dramatiq. First, create a file named example.py:

import dramatiq
import requests
import sys


@dramatiq.actor
def count_words(url):
    response = requests.get(url)
    count = len(response.text.split(" "))
    print(f"There are {count} words at {url!r}.")


if __name__ == "__main__":
    count_words.send(sys.argv[1])

In one terminal, run your dramatiq workers:

dramatiq example

In another terminal, you can start enqueueing messages:

python example.py http://example.com
python example.py https://github.com
python example.py https://news.ycombinator.com

Why use dramatiq?

dramatiq stands out as an excellent choice for background task processing due to several key advantages:

  • Speed and Reliability: Engineered for high performance and dependable task execution, even under heavy loads.
  • Python 3 Focus: Built specifically for modern Python development, taking advantage of its features.
  • Broker Flexibility: Seamlessly integrates with popular message brokers such as RabbitMQ and Redis, offering flexibility in your infrastructure.
  • Improved Responsiveness: Offloads time-consuming tasks, preventing your main application from freezing and enhancing user experience.
  • Scalability: Supports distributed task processing, allowing you to scale your background workers independently.
  • Simple API: Provides a straightforward and intuitive API for defining actors and dispatching tasks.

Links

Related repositories

Similar repositories that may be relevant next.

Maskit: Local Privacy Gateway for LLMs and AI Tools

Maskit: Local Privacy Gateway for LLMs and AI Tools

September 20, 2026

Maskit is a local privacy desensitization gateway engineered for large language models and AI tools. It automatically masks sensitive data in requests sent to AI services and then seamlessly restores it in streaming responses, ensuring private information remains local. This innovative solution supports various AI assistants like Cursor and Claude Code, along with any tool offering a configurable Base URL.

data-maskingprivacyllm
CyberVerse: Self-Hosted Real-Time Digital Human Agent Platform

CyberVerse: Self-Hosted Real-Time Digital Human Agent Platform

September 18, 2026

CyberVerse is an open-source, self-hosted platform for building real-time digital human agents. It leverages WebRTC, persona memory, tools, and RAG to create voice-first AI agents, with optional digital-human video capabilities. This powerful framework allows developers to create highly interactive and lifelike AI companions.

ai-agentsdigital-humanvoice-assistant
ctx-gate: LLM Context Gateway for Efficient Token Usage

ctx-gate: LLM Context Gateway for Efficient Token Usage

September 16, 2026

ctx-gate is an LLM-agnostic context optimization proxy that reduces token consumption in AI interactions. It intelligently prunes conversation history and tool outputs, ensuring critical facts are retained without altering your workflow. Compatible with Anthropic and OpenAI APIs, ctx-gate helps developers manage LLM costs and maintain prompt fidelity.

llmcontext-managementtoken-optimization
Ferret MCP: AI-Powered Knowledge Extraction for Any Codebase

Ferret MCP: AI-Powered Knowledge Extraction for Any Codebase

September 14, 2026

Ferret MCP is an MCP server designed to extract comprehensive knowledge from any codebase, combining static analysis with AI-powered deep interpretation. It provides detailed insights into architecture, patterns, dependencies, and API surface, delivering a senior engineer's analysis in seconds. This tool integrates seamlessly with various MCP clients, offering both free static analysis and advanced AI-driven reports.

pythoncode-analysisllm

Source repository

Open the original repository on GitHub.

16 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️