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.decorators 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.13.tar.gz (34.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: fast_mq_task-2.0.13.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for fast_mq_task-2.0.13.tar.gz
Algorithm Hash digest
SHA256 7db6ec561496eab4db1b15d4ce04301aa8c3ca5dc9a68621a8581e47d39c5284
MD5 3990731cefe7fd96cb4399ada970b531
BLAKE2b-256 422e292ae2c06b8dccbae768a1c66831beb7ede24f021eccdc9b1df1cff204b2

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