Skip to content

pitt-rnel/pylsb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pylsb Python package

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

This project is under active development and experimentation. Do not use in production until a stable release has been issued.

Install

From root directory of the repo:

$ pip install .

Usage

Launch MessageManager:

$ python manager.py -a "127.0.0.1"

Create a module:

from pylsb.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/pylsb_bench.py -h
usage: pylsb_bench.py [-h] [-ms MSG_SIZE] [-n NUM_MSGS] [-np NUM_PUBLISHERS]
                     [-ns NUM_SUBSCRIBERS] [-s SERVER]

lsbClient 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            LSB message manager ip address (default:
                       127.0.0.1:7111)

About

A python client for LabSwitchboard written in python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •