Skip to main content

AMQP Client 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minty_amqp-3.0.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minty_amqp-3.0.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file minty_amqp-3.0.1.tar.gz.

File metadata

  • Download URL: minty_amqp-3.0.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for minty_amqp-3.0.1.tar.gz
Algorithm Hash digest
SHA256 660cc791c90abd554f7d09c1c276a3eb2ee9e569b6a2ccd0c97441e215a1a2f8
MD5 52590a49447d067e7df37f4712d51f5c
BLAKE2b-256 656bd899b1580cd82d42237683a4df1978b0d693891417114468ded416f16f35

See more details on using hashes here.

File details

Details for the file minty_amqp-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: minty_amqp-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for minty_amqp-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d442406eb713ad0ed2367421578f322076d33dc0910ddbf4b2354073753a9dc4
MD5 26370a12892b4d7d39b6fc1e20b98358
BLAKE2b-256 6a3a8581d32b10e39b0038e483097ab20bccf207129d4b18cef5f898b48f50b4

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