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 .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


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.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for VcdExtMessageWorker-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 55afc09022160f51004b253ad937b97303b82d17a500daf4715a9d752e5280ea
MD5 c21bf5810063414a08c27abe95ec4274
BLAKE2b-256 7a59455e349196277dd28fc859f441ff392ced66479a3de46e5f4b4a49911a6e

See more details on using hashes here.

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