Skip to main content

RabbitMQ integration

Project description

Klein Queue

Module to abstract queues. Currently implements RabbitMQ.

Documentation

API docs can be found at https://informatics.pages.mdcatapult.io/klein/py-queue/src.

Generate API docs for a particular version with pdoc:

pip install pdoc3
pdoc --http :8080 src

Environment Variables

Env Variable Description
RABBITMQ_USERNAME
RABBITMQ_PASSWORD
RABBITMQ_HOST
RABBITMQ_PORT
RABBITMQ_VHOST Use a VHOST instead of default of /
RABBITMQ_SOCKET_TIMEOUT
RABBITMQ_HEARTBEAT
RABBITMQ_BLOCKED_CONNECTION_TIMEOUT
RABBITMQ_RETRY_DELAY
RABBITMQ_PUBLISHER
RABBITMQ_CONSUMER
RABBITMQ_ERROR
RABBITMQ_CREATE_QUEUE_ON_CONNECT Config to determine whether to create queue at connection

Python

Utilises python 3.7

Ubuntu

sudo apt install python3.7

Virtualenv

virtualenv -p python3.7 venv
source venv/bin/activate
pip install -r requirements.txt

Testing

docker-compose up
python -m pytest

License

This project is licensed under the terms of the Apache 2 license, which can be found in the repository as LICENSE.txt

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

klein_queue-2.4.4.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

klein_queue-2.4.4-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file klein_queue-2.4.4.tar.gz.

File metadata

  • Download URL: klein_queue-2.4.4.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.11

File hashes

Hashes for klein_queue-2.4.4.tar.gz
Algorithm Hash digest
SHA256 1f4c45c93c50ac68cea73f8da22cb83029aad6dceda63f16cc9f864ba93df0e8
MD5 3b259e97f1c24863c8782e3e6bcf3351
BLAKE2b-256 245558d243f3d2cb6e66a9b1c4387e95a53adc42308ca994cef8ca699d38ff46

See more details on using hashes here.

File details

Details for the file klein_queue-2.4.4-py3-none-any.whl.

File metadata

  • Download URL: klein_queue-2.4.4-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.11

File hashes

Hashes for klein_queue-2.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e933ef1d54ee8b86dc0d5147e0f3ed981f36982a6ccb87b2b62adab6fd9ea7c0
MD5 d52430fd5f3d727fa5697b7449a7dc5a
BLAKE2b-256 6c33f846241e79ab98a1a1cf944ef27d6da1c7710503ea332a6dcaa2fc7e35c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page