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="application_config.json",
    )
    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()

application_config.json example:

{
"config_file": "config.json",
"url": "http://rabbitmq_url:6782",
"consumers": [
  {
    "routing_key": "zs.*.base.*",
    "queue_name": "message_print_queue",
    "exchange": "amq.topic",
    "qos_prefetching": 1,
    "class": "package_name.consumer.ConsumerPrint",
    "number_of_channels": 1
  }
]
}

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) 2018, Minty Team and all persons listed in CONTRIBUTORS

This project is licensed under the EUPL, v1.2. See the EUPL-1.2.txt file 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-0.0.4.tar.gz (5.6 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-0.0.4-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minty_amqp-0.0.4.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for minty_amqp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 745d748c4d3ab5a4093071e4112c2eca36f835b868d0f2d4e5b5a8b13bf861f8
MD5 ce48f62cb71f7eb5c96f165b5174f628
BLAKE2b-256 2753bdcdad9eb60f5bde450ad81f5870c8b7cfee93d8243d48a409942130c716

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minty_amqp-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for minty_amqp-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4bc797a00a360bcadaf13afa5e585873f81d527a8a3f6db4806fb49370aa6aad
MD5 1f06ff66592c5f228ca9e4157e1f90a1
BLAKE2b-256 cb44800bf7dde06ee0bda9980d6131c2ded49132edfa4c05b8c844923e84a3a4

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