Skip to main content

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

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.

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.0.0.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stomp.py-6.0.0-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stomp.py-6.0.0.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.8.0 Linux/5.3.0-29-generic

File hashes

Hashes for stomp.py-6.0.0.tar.gz
Algorithm Hash digest
SHA256 4e639fee9aaa288e98b0bb981029a11eb8464276b8d19b3e61adead52bc3c01b
MD5 7b3bfdece4d104d7dfc1617fc90af484
BLAKE2b-256 8f5883e231c2a43754c49b4d75d10589db0ef68827ec96b5fa49a713d7cb0c09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stomp.py-6.0.0-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.8.0 Linux/5.3.0-29-generic

File hashes

Hashes for stomp.py-6.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a9e4908ddb3a1d46481c2c25d60dcc46caaa60be3d4d6d4e39096c884051ef0
MD5 da12ec53f2e48084351c6f169780a718
BLAKE2b-256 d7a0a67e46ec1e63f2e78497e7331092eeb2ce4b69738d80a8210122e7a000a9

See more details on using hashes here.

Supported by

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