Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 9.0.0 instead.
Reason given by maintainers: Wrong version number - backwards incompatible

stomp.py

PyPI version

“stomp.py” is a Python client library for accessing messaging servers (such as ActiveMQ Classic, 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.

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

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:

For testing locally, you’ll need to install docker (or podman). Once installed:

  1. Install dependencies:

    poetry install

  2. Create the docker (or podman) image:

    make docker-image (or make podman-image)

  3. Run the container:

    make run-docker (or make run-podman)

  4. Run stomp.py unit tests:

    make test

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

    make remove-docker (or make remove-podman)

If you want to connect to the test services locally (other than from the included tests), you’ll want to add test domain names to your hosts file like so:
172.17.0.2 my.example.com
172.17.0.2 my.example.org
172.17.0.2 my.example.net

If you’re using podman and you want to access services via their private IP addresses, you’ll want to run your commands with:

podman unshare --rootless-netns <command>

so that <command> has access to the private container network. Service ports are also exposed to the host and can be accessed directly.

Metadata

Release files for stomp.py 8.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stomp.py 8.3.0
File Size Uploaded Provenance Actions
stomp_py-8.3.0.tar.gz 39.8 kB Without provenance Details for stomp_py-8.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stomp.py 8.3.0
File Interpreter ABI Platform Actions
stomp_py-8.3.0-py3-none-any.whl Python 3 none any Details for stomp_py-8.3.0-py3-none-any.whl

Total release size: 84.1 kB

Release files / stomp_py-8.3.0.tar.gz

Download URL stomp_py-8.3.0.tar.gz
Size 39.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f06d8ec494cdb5c75f73cd288ed7b9689e2be1683d1c56e4489a26d2b29369f4
BLAKE2b-256 checksum
How to use checksums
1cd55d85a05b67fb02e9ec11f4b7614c3736772416bfe3dbae2f5cbf1c84ac3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.14.4 Linux/7.0.3-1-MANJARO

Release files / stomp_py-8.3.0-py3-none-any.whl

Download URL stomp_py-8.3.0-py3-none-any.whl
Size 44.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66a43c79e253cd27bf5bd92ffae0236c6caacd7fa3f8e6e874a9d74b4ece5abf
BLAKE2b-256 checksum
How to use checksums
2bfab94fae3f4720d07b63a271ca2446515eb0fd8e15f1ceeeb5e47146444371
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.14.4 Linux/7.0.3-1-MANJARO

Security for stomp.py 8.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

8.3.0 This release

2 release files No provenance

2.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page