Bluesky Stomp
STOMP integration for bluesky
| Source | https://github.com/DiamondLightSource/bluesky-stomp |
|---|---|
| PyPI | pip install bluesky-stomp |
| Releases | https://github.com/DiamondLightSource/bluesky-stomp/releases |
Low Level API
The library comes with some helpers for interacting with a stomp broker:
from bluesky_stomp.messaging import MessageContext, StompClient
from bluesky_stomp.models import Broker, MessageQueue, MessageTopic
# Assumes you have an unauthenticated broker such as ActiveMQ running on localhost:61613
client = StompClient.for_broker(Broker(host="localhost", port=61613))
try:
# Connect to the broker
client.connect()
# Send a message to a queue and a topic
client.send(MessageQueue(name="my-queue"), {"foo": 1, "bar": 2})
client.send(MessageTopic(name="my-topic"), {"foo": 1, "bar": 2})
# Subscribe to messages on a topic, print all messages received,
# assumes there is another service to post messages to the topic
def on_message(message: str, context: MessageContext) -> None:
print(message)
client.subscribe(MessageTopic(name="my-other-topic"), on_message)
# Send a message and wait for a reply, assumes there is another service
# to post the reply
reply_future = client.send_and_receive(
MessageQueue(name="my-queue"), {"foo": 1, "bar": 2}
)
print(reply_future.result(timeout=5.0))
finally:
# Disconnect at the end
client.disconnect()
python -m bluesky_stomp --version
Metadata
Release files for bluesky-stomp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bluesky_stomp-0.2.0.tar.gz | 37.4 kB | Without provenance | Details for bluesky_stomp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bluesky_stomp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for bluesky_stomp-0.2.0-py3-none-any.whl |
Total release size: 56.7 kB
Release files / bluesky_stomp-0.2.0.tar.gz
| Download URL | bluesky_stomp-0.2.0.tar.gz |
|---|---|
| Size | 37.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ad3f283a71427f20188c5c799923cd80ad069e911090f042158c2655a22ef82
|
|
BLAKE2b-256 checksum How to use checksums |
5cbc2b41defcec6b9d4f2e7899e67549aff2c04bb2fef3e4427c92d33c61149d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / bluesky_stomp-0.2.0-py3-none-any.whl
| Download URL | bluesky_stomp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6c01504839717c2953b9efdc714f63db3cd1f2e0b2d0221f0b4f51415d7a0f2
|
|
BLAKE2b-256 checksum How to use checksums |
394dd3069d2e0675ad5037c583b8819e5df6fa07ac1814930ed18644191fa232
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for bluesky-stomp 0.2.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.