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
Release history Release notifications | RSS feed
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.1.tar.gz
(9.4 kB
view details)
Built Distribution
dci_umb-0.4.1-py3-none-any.whl
(11.4 kB
view details)
File details
Details for the file dci-umb-0.4.1.tar.gz
.
File metadata
- Download URL: dci-umb-0.4.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53369cc77e82fd605e6376fccb6b795a3cc9a5427acf48638a3d86b6dbc54a52 |
|
MD5 | 6094997947b3e7d0183c7b5bcad59a08 |
|
BLAKE2b-256 | a1cebdfa5fdb9bdcdee83841eb62ef9d14cf42c44468a1a083c0ba3286f6ab44 |
File details
Details for the file dci_umb-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: dci_umb-0.4.1-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a14758f55cfdedcef5cfc7f876d364661d214cb6d165fb20b480d869527b74d |
|
MD5 | 0ae5ea4414a8f94e80ae001e05df62e3 |
|
BLAKE2b-256 | cc76a924ddef5b93ce5c7175a2b4ffade25ddc91f168679787ce0d06452d4a27 |