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.3a0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

klein_queue-2.4.3a0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file klein_queue-2.4.3a0.tar.gz.

File metadata

  • Download URL: klein_queue-2.4.3a0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for klein_queue-2.4.3a0.tar.gz
Algorithm Hash digest
SHA256 051fe33924bb77d649f99e29a4c9fafd0eaf3309cf1b200367e7a271fe2d0405
MD5 211cb0c4173a5d1fcfb418ae23afa980
BLAKE2b-256 2984b6e2294763cb9d9b5b452173ed42b2d4fdcaf3bb5e3b701e3d6e38a85738

See more details on using hashes here.

File details

Details for the file klein_queue-2.4.3a0-py3-none-any.whl.

File metadata

File hashes

Hashes for klein_queue-2.4.3a0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce382181760f632004ea2f0f1b88f709da6595762f2c0ec3fbffa74ffd0b4491
MD5 69cf4fc36c5b77abc201238b053c1e77
BLAKE2b-256 30d2a5f056aa3e0753944d11ade01b736490deaa9e756cbe1430b7e3a2147402

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