xrpd_toolbox
A repository for useful python data analysis tools for the X-ray powder diffraction beamlines at Diamond Light Source
This is where you should write a short paragraph that describes what your module does, how it does it, and why people should use it.
| What | Where |
|---|---|
| Source | https://github.com/DiamondLightSource/xrpd-toolbox |
| PyPI | pip install xrpd-toolbox |
| Docker | docker run ghcr.io/diamondlightsource/xrpd-toolbox:latest |
| Releases | https://github.com/DiamondLightSource/xrpd-toolbox/releases |
from xrpd_toolbox import __version__
print(f"Hello xrpd_toolbox {__version__}")
Here are some useful things for
from xrpd_toolbox.utils.messenger import Messenger
client = Messenger("i15-1", broker="rabbitmq", username="guest", password="guest") #this will connect to i15-1's raabitmq
client.send_message("/topic/public.worker.event", "MY MESSAGE")
client.listen() #to listen to what is happening on the default destinations
DEFAULT_DESTINATIONS = [
"/topic/public.worker.event",
"/topic/gda.messages.scan",
]
my_destinations = ["/topic/my_dest"]
#if you want to listen on other you can use:
client = Messenger("i15-1", broker="rabbitmq", username="guest", password="guest", destinations=my_destinations)
#if you want to connect to a specific message bus too:
client = Messenger(host=MY_HOST, port=MY_PORT, username="guest", password="guest", destinations=my_destinations)
Metadata
Release files for xrpd-toolbox 0.1.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xrpd_toolbox-0.1.4.4.tar.gz | 1.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xrpd_toolbox-0.1.4.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.8 MB
Release files / xrpd_toolbox-0.1.4.4.tar.gz
| Download URL | xrpd_toolbox-0.1.4.4.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b25ad1fae0964ca28ec4fb5ecf4b6e2a5451465b113d41923fc2d6c70de5d10
|
|
BLAKE2b-256 checksum How to use checksums |
4464ac81be1f566a9174d691bc8f51c8272d6b74f9905536ee2f4c569ae7f98e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / xrpd_toolbox-0.1.4.4-py3-none-any.whl
| Download URL | xrpd_toolbox-0.1.4.4-py3-none-any.whl |
|---|---|
| Size | 252.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3c60536ebaa7f6fce1895656d705b8c05afc1e9c23913658592442943ec1397
|
|
BLAKE2b-256 checksum How to use checksums |
a16d1064000bd6e0d2d0e14410dc780fee3677b87323d64d055272e8d5cb6dd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|