Skip to content

Repository files navigation

CLI-PROTON-PYTHON

https://travis-ci.org/rh-messaging/cli-proton-python.svg?branch=master

Proton Python clients is a collection of reactive messaging test clients built on python-qpid-proton AMQP1.0 based messaging library. cli-proton-python is a part of Unified Messaging Test Clients that offers equivalent functionality when using different programing languages or APIs.

current related projects:

Installation

cli-proton-python requires Python v2.6+ to run.

$ pip install cli-proton-python

Using

Using the command line clients (please refer to --help to discover the available options)

$ cli-proton-python-sender --broker-url "username:password@localhost:5672/queue_test" --count 1 --msg-content "text message" --log-msgs dict
$ cli-proton-python-receiver --broker-url "username:password@localhost:5672/queue_test" --count 1 --log-msgs dict

Using in script

importprotonfromcli_proton_pythonimportsenderparser=sender.options.SenderOptions()
opts, _=parser.parse_args()
opts.broker_url='username:password@localhost:5672/examples'opts.count=1opts.msg_content='text message'opts.log_msgs='dict'container=proton.reactor.Container(sender.Send(opts))
container.run()

Documentation

Documentation Status

Documentation may be found on readthedocs.io: read the docummentation

License

About

Proton Python client provided by QE for testing.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages