Skip to main content

Python STOMP client, supporting versions 1.0, 1.1 and 1.2 of the protocol

Project description

PyPI version

“” 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: has officially ended support for Python2.x. See for more information.

If you find this project useful, why not buy me a coffee.

<nav class="contents" id="topic-1" role="doc-toc">


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')

Documentation and Resources

The current version of 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: 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 has been perfunctorily tested on:

For testing locally, you’ll need to install docker. Once installed:

  1. Create the docker image:

    make docker-image

  2. Run the container:

    make run-docker

  3. Run unit tests:

    make test

  4. Cleanup the container afterwards if you don’t need it any more:

    make remove-docker

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution (35.3 kB view hashes)

Uploaded source

Built Distribution (37.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page