Skip to content

lrivallain/VcdExtMessageWorker

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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

About

RabbitMQ message worker for vCloud Director Extensibility SDK

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages