A Python client for RTMA/Dragonfly
Project description
pyrtma
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
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 Distribution
pyrtma-1.0.0.tar.gz
(15.1 kB
view hashes)
Built Distribution
pyrtma-1.0.0-py3-none-any.whl
(16.7 kB
view hashes)