Skip to main content

Fast RabbitMQ task management library for asynchronous message handling

Project description

Fast RabbitMQ task management library for asynchronous message handling.

Features

  • Asynchronous RabbitMQ message handling

  • Task queue management with Pydantic validation

  • Robust retry mechanisms with Tenacity

  • Easy-to-use decorators for consumers and producers

  • Support for both sync and async handlers

Installation

pip install fast-mq-task

Quick Start

Producer Example:

from fast_mq_task import Producer
from fast_mq_task.models import TaskMessage

producer = Producer()
await producer.publish_task(task_message)

Consumer Example:

from fast_mq_task import Consumer
from fast_mq_task.register import consumer

@consumer(queue_name="task_queue")
async def handle_task(message: TaskMessage):
    # Process your task here
    pass

Requirements

  • Python >= 3.7

  • aio-pika

  • pydantic

  • tenacity

License

BSD License

Author

zsodata <team@zso.io>

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

fast_mq_task-2.0.18.tar.gz (35.3 kB view details)

Uploaded Source

File details

Details for the file fast_mq_task-2.0.18.tar.gz.

File metadata

  • Download URL: fast_mq_task-2.0.18.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.3

File hashes

Hashes for fast_mq_task-2.0.18.tar.gz
Algorithm Hash digest
SHA256 5ab635e36a864942ed3cb89b8540efe7b9d0be64bd7557d4c3880c0a495e1961
MD5 e4fcf1dd8459d21aa9e27d6938fd9787
BLAKE2b-256 4d2546f66214ac3da9e2e68b89ccd38296c4767cd5a7e3fb4259a929eb5c025f

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