Skip to main content

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

Reason this release was yanked:

Incorrect version which doesn't reflect the changes in 6.1.1 and 6.1.0

Project description

PyPI version Build Status

“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

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. Once installed:

  1. Create the docker image:

    make docker-image

  2. Run the container:

    make run-docker

  3. Run stomp.py 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

stomp.py-6.1.1.tar.gz (34.8 kB view details)

Uploaded Source

Built Distribution

stomp.py-6.1.1-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file stomp.py-6.1.1.tar.gz.

File metadata

  • Download URL: stomp.py-6.1.1.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

Hashes for stomp.py-6.1.1.tar.gz
Algorithm Hash digest
SHA256 dbd069175772fa77218fa6d813ffbf6f7856fa0360fa195c465f885658b764e8
MD5 918daf9351ffb557a73264903c8ab711
BLAKE2b-256 b5026e5bd5a3f7488443049428b3b269ba85505a83775c442651e9e4f302d424

See more details on using hashes here.

Provenance

File details

Details for the file stomp.py-6.1.1-py3-none-any.whl.

File metadata

  • Download URL: stomp.py-6.1.1-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

Hashes for stomp.py-6.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 814f06b2940a36cbdb9a59e61c198dc6a5fb738f7e2faa2381188f544502e892
MD5 8ca125f8c24465017d56835a7251517e
BLAKE2b-256 85b873f23195e835448f21eeac77347e0bcc5b996e44562a90f76268b3e25943

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page