Skip to main content

DCI umb module

Project description

DCI UMB

DCI UMB is a tool that listen on an amqps broker, filter on a specific topic and propagate any event via http post request.

TLDR

$ sudo yum -y install https://packages.distributed-ci.io/dci-release.el7.noarch.rpm
$ sudo yum -y install dci-umb
$ dci-umb \
  --key ./broker.key \
  --crt ./broker.crt \
  --ca ./broker.ca \
  --broker amqps://example.org:5671 \
  --source topic://VirtualTopic.eng \
  --destination http://localhost:5000/events

Run as a service

If you want to run dci-umb as a systemd service, you can edit /etc/dci-umb/config file and modify the config. Then you can run systemctl start dci-umb

Example

Create a python virtual environment

python3 -m venv venv
source venv/bin/activate

Install dependencies

pip install -r sandbox/requirements.txt
pip install -r requirements.txt

Start the sandbox server:

python sandbox/server.py

In another terminal start dci-umb with parameters

source venv/bin/activate
PYTHONPATH=. python dci_umb/main.py \
    --key ./broker.key \
    --crt ./broker.crt \
    --ca ./broker.ca \
    --broker amqps://example.org:5671 \
    --source topic://VirtualTopic.eng \
    --destination http://localhost:5000/events

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

dci-umb-0.4.2.post202503202157.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

dci_umb-0.4.2.post202503202157-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file dci-umb-0.4.2.post202503202157.tar.gz.

File metadata

  • Download URL: dci-umb-0.4.2.post202503202157.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.3

File hashes

Hashes for dci-umb-0.4.2.post202503202157.tar.gz
Algorithm Hash digest
SHA256 0f56f668e632b2d4abf40fa5911e364ce77b1b60c15657f62600c88d076ed267
MD5 011ed3e71466885961ee5ee6d16e5e80
BLAKE2b-256 0d9ab3d92d2382330189eea09cc5ead85058b93acaa353a609a3cfaa83747f93

See more details on using hashes here.

File details

Details for the file dci_umb-0.4.2.post202503202157-py3-none-any.whl.

File metadata

File hashes

Hashes for dci_umb-0.4.2.post202503202157-py3-none-any.whl
Algorithm Hash digest
SHA256 108fd7a0ad9a04ad5d0b0f2aec9ce376111376e74d903946d8058118650330bd
MD5 42304ad2e51d1100cb9de50d70c106dd
BLAKE2b-256 b2369da89f3e987dbbf22f1d2d3d9a87933ea4fe6a1477cc505e8659004adb98

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