RabbitMQ message worker for vCloud Director Extensibility SDK
Project description
VcdExtMessageWorker
VcdExtMessageWorker provides a way to handle, relay and answer to RabbitMQ messages produced from the VMware vCloud Director extensibility SDK (both for UI and API extension)
#!/usr/bin/env python
from vcdextmessageworker import MessageWorker, Connection
with Connection(
(f"amqp://{RABBIT_USER}:{RABBIT_PASSWORD}@{RABBIT_HOST}:5672/%2F"),
heartbeat=4
) as conn:
worker = MessageWorker(
conn,
exchange=RABBIT_EXCHANGE,
queue=RABBIT_QUEUE,
routing_key=RABBIT_ROUTINGKEY,
sub_worker="worker_example.SampleWorker",
thread_support=True
)
worker.run()
Installation
Get binaries (as .whl
file), then run pip install
as:
pip install VcdExtMessageWorker-<version>-py3-none-any.whl
Or from PIP:
pip install VcdExtMessageWorker
Build and tests
python setup.py bdist_wheel && python -m pip install dist/VcdExtMessageWorker-<version>-py3-none-any.whl --force-reinstall
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file VcdExtMessageWorker-0.3-py3-none-any.whl
.
File metadata
- Download URL: VcdExtMessageWorker-0.3-py3-none-any.whl
- Upload date:
- Size: 4.1 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.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55afc09022160f51004b253ad937b97303b82d17a500daf4715a9d752e5280ea |
|
MD5 | c21bf5810063414a08c27abe95ec4274 |
|
BLAKE2b-256 | 7a59455e349196277dd28fc859f441ff392ced66479a3de46e5f4b4a49911a6e |