Skip to content

“stomp.py” is a Python client library for accessing messaging servers (such as Apollo or RabbitMQ) using the STOMP protocol (versions 1.0, 1.1 and 1.2). It can also be run as a standalone, command-line client for testing.

License

Notifications You must be signed in to change notification settings

rkeiii/stomp.py

 
 

Repository files navigation

README

"stomp.py" is a Python client library for accessing messaging servers (such as ActiveMQ, Apollo or RabbitMQ) using the STOMP protocol (versions 1.0, 1.1 and 1.2). It can also be run as a standalone, command-line client for testing.

Quick Start

You can connect to a message broker running on the local machine, and send a message using the following example:

import stomp

conn = stomp.Connection()
conn.set_listener('', MyListener())
conn.start()
conn.connect('admin', 'password', wait=True)
conn.send(body=' '.join(sys.argv[1:]), destination='/queue/test')
conn.disconnect()

A basic example of using stomp.py, with a message listener, can be found here. Testing via the command-line interface is described here.

Downloads can be found on PyPi. API documentation can be found here. Current test coverage can be found here, continuous integration on Travis.

Version 4.0+ is for both Python2.x and Python3.x - with support for versions 1.0, 1.1 and 1.2 of the protocol. Legacy clients using the old 3-series code, can find the download for 3.1.7 here (github branch here)

stomp.py has been perfunctorily tested on: ActiveMQ, Apollo, RabbitMQ, stompserver, and has been reported to work with JBossMessaging in the distant past. For more info on setting up a test server (using virtualbox), contact the developer.

Contributors (pre-github)

Julian Scheid (Rising Sun Pictures)
Andreas Schobel
Fernando Ciciliati
Eugene Strulyov
Gavin M. Roy
Martin Pieuchot
Joe Gdaniec
Jayson Vantuyl
Tatiana Al-Chueyr Martins
Rafael Durán Casteñada
Chaskiel Grundman
Ville Skyttä
Pavel Savchenko

Project Status

PyPI version
Build Status

About

“stomp.py” is a Python client library for accessing messaging servers (such as Apollo or RabbitMQ) using the STOMP protocol (versions 1.0, 1.1 and 1.2). It can also be run as a standalone, command-line client for testing.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.9%
  • Makefile 1.1%