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 .tgz file), then run pip install as:
pip install dist/VcdExtMessageWorker-<version>.tar.gz
Or from PIP:
pip install VcdExtMessageWorker
Build and tests
python setup.py bdist_wheel && python -m pip install dist/VcdExtMessageWorker-0.1-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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file VcdExtMessageWorker-0.1-py3-none-any.whl.
File metadata
- Download URL: VcdExtMessageWorker-0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b38345288c41cdc4a8b31fc1d847835ae4accb65c46c1cfbce1d781bc119ec3a
|
|
| MD5 |
110e441da0c1f39eae0cf448e2d65851
|
|
| BLAKE2b-256 |
16eaf535184c0026aab8ed16eb72cb313d477aed8abb704d871fc1883380dcff
|