A simple STOMP client for WebSocket with asyncio support
Project description
auto-stomp - Async STOMP over WebSocket for Python
auto-stomp is an asyncio-based STOMP (Simple/Streaming Text Oriented Messaging Protocol) client that supports WebSocket connections.
It's designed for use with brokers like Spring STOMP endpoints over WebSocket.
Installation
pip install async-stomp-client
Or, if you're building from source:
git clone https://github.com/your-username/async-stomp-client.git
cd async-stomp-client
pip install .
Quick Start
import asyncio
from auto_stomp import Client
async def main():
stomp = Client(brockerURL="ws://localhost:8080/signaling", debug=True)
await stomp.connect()
await stomp.subscribe(
id="1",
destination="/topic/offer",
callback=lambda body: print(f"Received offer: {body}")
)
await stomp.send(destination="/app/offer", body="Hello, World!")
await stomp.run_forever()
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
auto-stomp-0.0.1.tar.gz
(4.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file auto-stomp-0.0.1.tar.gz.
File metadata
- Download URL: auto-stomp-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b0ce0f17c9d809d7e221f8ab35e9fe29188b5cef8e06979128e2cae429692ff
|
|
| MD5 |
3e766818d890deb365e986129e3a3c61
|
|
| BLAKE2b-256 |
153cfca139c1bfe00622d89130a29e18a54921010804f55a0a9cdcd2dbe6bfe1
|
File details
Details for the file auto_stomp-0.0.1-py3-none-any.whl.
File metadata
- Download URL: auto_stomp-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32521928f2b438252562dbcdaef9e7bff6fb0e9c1464fa04db5b60445617fbea
|
|
| MD5 |
49a825abe734f3ec16748f2292db8413
|
|
| BLAKE2b-256 |
9193067bd7e9c998983184b86bf641ee90ba0d8ab531242532a51b25d53c12fb
|