Skip to main content

A Python client for RTMA/Dragonfly

Project description

pyrtma Python package

RTMA/Dragonfly client written in python with no external dependencies. Based on and compatible with Dragonfly Messaging

Install

From root directory of the repo:

$ pip install .

Usage

Launch MessageManager:

$ python manager.py -a "127.0.0.1"

Create a module:

from pyrtma.client import Client

mod = Client()
mod.Connect('127.0.0.1:7111')

See /examples for pub/sub use case:

In one terminal run:

$ python example.py --pub

And from another run:

$ python example.py --sub

Bench testing utility:

$ python testing/pyrtma_bench.py -h
usage: pyrtma_bench.py [-h] [-ms MSG_SIZE] [-n NUM_MSGS] [-np NUM_PUBLISHERS]
                     [-ns NUM_SUBSCRIBERS] [-s SERVER]

pyrtma Client bench test utility

optional arguments:
  -h, --help           show this help message and exit
  -ms MSG_SIZE         Messge size in bytes.
  -n NUM_MSGS          Number of messages.
  -np NUM_PUBLISHERS   Number of concurrent publishers.
  -ns NUM_SUBSCRIBERS  Number of concurrent subscribers.
  -s SERVER            RTMA message manager ip address (default:
                       127.0.0.1:7111)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrtma-1.0.0.tar.gz (15.1 kB view hashes)

Uploaded Source

Built Distribution

pyrtma-1.0.0-py3-none-any.whl (16.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