Skip to main content

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


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

VcdExtMessageWorker-0.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

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