stompclient is a python 2.6+ client for interacting with STOMP servers (aka brokers).

It supports both a "simplex" (publish-only) client, for use in situations where you just need to send messages to a server (e.g. from the context of a request in a web application) and a "duplex" (publish-subscribe) implementation that supports receiving frames from the server.

This project was motivated by the same "why-is-there-no-decent-python-solution?" sentiment of CoilMQ. Currently this product should be considered beta-quality. There's a good start to testing, but more tests need to be written. And it is possible that the API will need to change.

Read on for getting started, jump to User Documentation or browse the online version of the API Documentation.


Install latest (from PyPI) using easy_install:

shell$ easy_install stompclient

Import & start using it:

from stompclient import PublishClient

client = PublishClient('', 61613)
client.send('/queue/testing', 'This is the body.')

For more real-world examples (including subscribing/receiving frames), see the User Documentation.


Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.