Skip to main content

Introduction

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.

Metadata

Release files for minty-amqp 4.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minty-amqp 4.1.2
File Size Uploaded Provenance Actions
minty_amqp-4.1.2.tar.gz 11.8 kB Without provenance Details for minty_amqp-4.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for minty-amqp 4.1.2
File Interpreter ABI Platform Actions
minty_amqp-4.1.2-py3-none-any.whl Python 3 none any Details for minty_amqp-4.1.2-py3-none-any.whl

Total release size: 24.0 kB

Release files / minty_amqp-4.1.2.tar.gz

Download URL minty_amqp-4.1.2.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e48004022de00409620dfcb6e7ebf4be7243aae34b2efa0a37bae99c6e471f07
BLAKE2b-256 checksum
How to use checksums
9d45d536c9baf73547cadf489efb3d8ca69aa65ea37c4ee0c11d3a2f2c9cd291
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / minty_amqp-4.1.2-py3-none-any.whl

Download URL minty_amqp-4.1.2-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccfd7f5519a8451c99bf75b47631c5b2bae32143515235ff0807af768ce82cc5
BLAKE2b-256 checksum
How to use checksums
9e10fb3cb495d76cc441a22abbc4d8ce4ffe8c86b023119327ab0bb36c429dbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for minty-amqp 4.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page