Python STOMP client, supporting versions 1.0, 1.1 and 1.2 of the protocol
Project description
“stomp.py” is a Python client library for accessing messaging servers (such as ActiveMQ, Artemis or RabbitMQ) using the STOMP protocol (STOMP v1.0, STOMP v1.1 and STOMP v1.2). It can also be run as a standalone, command-line client for testing. NOTE: Stomp.py has officially ended support for Python2.x. See python3statement.org for more information.
If you find this project useful, why not buy me a coffee.
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.connect('admin', 'password', wait=True)
conn.send(body=' '.join(sys.argv[1:]), destination='/queue/test')
conn.disconnect()
Documentation and Resources
API documentation (see stomp.github.io for details on the STOMP protocol itself)
A basic example of using stomp.py with a message listener can be found in the quick start section of the main documentation
Description of the command-line interface
Travis for continuous integration builds
Current test coverage report
The current version of stomp.py supports:
Python 3.x (Python2 support ended as of Jan 2020)
STOMP version 1.0, 1.1 and 1.2
There is also legacy 3.1.7 version using the old 3-series code (see 3.1.7 on PyPi and 3.1.7 on GitHub). This is no longer supported, but (at least as of 2018) there were still a couple of reports of this version still being used in the wild.
Note: stomp.py now follows semantic versioning:
MAJOR version for incompatible API changes,
MINOR version for functionality added in a backwards compatible manner, and
PATCH version for backwards compatible bug fixes.
Testing
stomp.py has been perfunctorily tested on:
Pivotal RabbitMQ (test_rabbitmq.py)
Apache ActiveMQ (test_activemq.py)
Apache ActiveMQ Artemis (test_artemis.py)
For testing locally, you’ll need to install docker. Once installed:
- Create the docker image:
make docker-image
- Run the container:
make run-docker
- Run stomp.py unit tests:
make test
- Cleanup the container afterwards if you don’t need it any more:
make remove-docker
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
Built Distribution
File details
Details for the file stomp.py-7.0.0.tar.gz
.
File metadata
- Download URL: stomp.py-7.0.0.tar.gz
- Upload date:
- Size: 34.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.3 CPython/3.8.0 Linux/5.4.0-70-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb301f338292b1b95089c6f1d3a38a9dd8353a5ff3f921e389dfa5f9413b5a8a |
|
MD5 | 9f8f0d1bbb97ab46e58fd86abf1ce39d |
|
BLAKE2b-256 | a5217c403c9083f28dfca179410b464777c743349cd245deb892960eeeae7467 |
Provenance
File details
Details for the file stomp.py-7.0.0-py3-none-any.whl
.
File metadata
- Download URL: stomp.py-7.0.0-py3-none-any.whl
- Upload date:
- Size: 37.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.3 CPython/3.8.0 Linux/5.4.0-70-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e1d93f2b2a7c63301f3e09e7ffa82ea80affec59164cd8c9b7807af4fe0e732 |
|
MD5 | d85dc71e125781e9984fb2e9abc35249 |
|
BLAKE2b-256 | 21a7b3cd7150c8fcfbcd242fb9a862cc86c5a8795503ac6503c9d1a63cd2e7f5 |