AMQP Consumer framework for minty project
Project description
AMQP Consumer service framework.
Getting started
Main:
def main(): amqp = AMQPLoader( domains=[insert_domains_here], command_wrapper_middleware=[insert_wrapper_classes_here], config_path="config.conf", ) amqp.start_client()
Create consumer:
from minty_amqp.consumer import BaseConsumer class ConsumerPrint(BaseConsumer): def __call__(self, message): print("Message:", message.body, "consumer_touch") message.ack()
package.conf example:
<amqp> url = 'http://0.0.0.0:5672' <consumer_settings> routing_keys = "zsnl.v2.*.*" queue_name = "legacy_logging_queue_test" exchange = "minty_exchange" qos_prefetching = 1 consumer_class = "zsnl_amqp_consumers.consumers.LegacyLoggingConsumer" number_of_channels = 1 <dead_letter_exchange> exchange = "minty_retry_exchange" retry_time_ms = 10000 </dead_letter_exchange> </consumer_settings> </amqp>
note: dead_letter_exchange config is optional
More documentation
Please see the generated documentation via CI for more information about this module and how to contribute in our online documentation. Open index.html when you get there: https://gitlab.com/minty-python/minty_amqp/-/jobs/artifacts/master/browse/tmp/docs?job=qa
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository
License
Copyright (c) Minty Team and all persons listed in the file CONTRIBUTORS
This project is licensed under the EUPL, v1.2. See the EUPL-1.2.txt in the LICENSES directory for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file minty_amqp-4.1.2.tar.gz
.
File metadata
- Download URL: minty_amqp-4.1.2.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e48004022de00409620dfcb6e7ebf4be7243aae34b2efa0a37bae99c6e471f07 |
|
MD5 | ee01d5c12e46572353c6b0254a67f992 |
|
BLAKE2b-256 | 9d45d536c9baf73547cadf489efb3d8ca69aa65ea37c4ee0c11d3a2f2c9cd291 |
File details
Details for the file minty_amqp-4.1.2-py3-none-any.whl
.
File metadata
- Download URL: minty_amqp-4.1.2-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccfd7f5519a8451c99bf75b47631c5b2bae32143515235ff0807af768ce82cc5 |
|
MD5 | ce025837621d3a709dea80febcaf749b |
|
BLAKE2b-256 | 9e10fb3cb495d76cc441a22abbc4d8ce4ffe8c86b023119327ab0bb36c429dbe |