skillfed

stomp.py

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

stomp-py v9.0.0 1.5M downloads/30d#3,878 on PyPI
Permissive license Apache-2.0 Active released

What it is and what it does

stomp.py is a Python client for the STOMP (Streaming Text Oriented Messaging Protocol) messaging standard. It lets you connect to message brokers like ActiveMQ, RabbitMQ, and Artemis to send and receive messages over a network. The library handles the protocol details—connection negotiation, message framing, and acknowledgment—so you write straightforward Python code to interact with your message queue. It supports STOMP versions 1.0, 1.1, and 1.2, and can also run as a standalone command-line tool for testing.

The package has minimal dependencies (just docopt-ng and websocket-client) and is actively maintained for modern Python (3.10–3.14). It's been in use since 2011 and is marked as production-stable. If you need to integrate a Python application with an existing STOMP-based messaging infrastructure, this is the standard choice.

Use it for:

  • Connect a Python service to an ActiveMQ or RabbitMQ broker to publish events or subscribe to message queues.
  • Build a message-driven microservice that listens for incoming STOMP messages and processes them asynchronously.
  • Write a command-line tool to test or debug STOMP message flows without writing application code.
  • Integrate legacy messaging systems (that speak STOMP) with modern Python applications.
  • Implement request-reply patterns over STOMP for distributed system communication.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Python client library for connecting to STOMP messaging servers (ActiveMQ, RabbitMQ, Artemis) and sending or receiving messages using the STOMP protocol.

Yes. The package is actively maintained, has low install friction, carries a permissive license, and is the standard Python client for STOMP. Install it if you need to communicate with a STOMP message broker. No known vulnerabilities and broad Python version support make it a safe, reliable choice.

Install

stomp-py on PyPI

pip

pip install stomp-py

uv

uv add stomp-py

poetry

poetry add stomp-py

Installing stomp.py

Before you install

Low friction install with only two runtime dependencies (docopt-ng and websocket-client). Active maintenance with a release within the last 94 days. Supports current Python versions (3.10 through 3.14).

License in practice

Apache-2.0 is a permissive open-source license; you can use this package freely in commercial and private projects with minimal restrictions, provided you include a copy of the license.

Quickstart

import stomp

conn = stomp.Connection()
conn.connect('admin', 'password', wait=True)
conn.send(body='test message', destination='/queue/test')
conn.disconnect()

Requires Python 3.10 or later; a STOMP-compatible message broker (ActiveMQ, RabbitMQ, or Artemis) must be running and accessible.

Verify before relying

  • Whether the package supports STOMP protocol versions beyond 1.0, 1.1, and 1.2.
  • Performance characteristics and throughput limits for high-volume message scenarios.
  • Whether SSL/TLS certificate validation is configurable for secure connections.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<4.0,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — docopt-ng, websocket-client
Maintenance actively maintained — 94 days since the last release
First released
Downloads 1,464,555/month — #3,878 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: stomp_py-9.0.0-py3-none-any.whl

Keywords: stomp, messaging, events, client

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

stomp protocol clientactivemq python clientrabbitmq stomp messagingmessage broker connectionstomp v1.0 v1.1 v1.2python messaging clientqueue messaging library
messagingstomp-protocolmessage-broker

More Networking packages