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 xrpd users at Diamond
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="MY USERNAME", password="PASSWORD", destinations=my_destinations)
#if you want to connect to a specific message bus too:
client = Messenger(host=MY_HOST, port=MY_PORT, username="MY USERNAME", password="PASSWORD", destinations=my_destinations)
If you are an i11 user and want to reprocess your data from a nexus, you can use the following gui by typing into a terminal
xrpd-toolbox bad_pixel_gui
and
xrpd-toolbox mythen_process_gui
Metadata
Release files for xrpd-toolbox 0.1.5.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.5.4.tar.gz | 1.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xrpd_toolbox-0.1.5.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.9 MB
Release files / xrpd_toolbox-0.1.5.4.tar.gz
| Download URL | xrpd_toolbox-0.1.5.4.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76997681039093f7f4b3f79554463f7a587ca3378f902f2722870f4c35700d95
|
|
BLAKE2b-256 checksum How to use checksums |
8a462f7ec0cc3db9fc6fe433ee5e925120a93c0114beda75ad729f3822aec331
|
| 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.5.4-py3-none-any.whl
| Download URL | xrpd_toolbox-0.1.5.4-py3-none-any.whl |
|---|---|
| Size | 277.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
451d0dcabbdfa288ab04bf856563ef1582c4f92789b2189bf4ca2fb9f0751313
|
|
BLAKE2b-256 checksum How to use checksums |
271210d9158d760b50a77d44114005747e5f8ce81e33b92f457fdf93d98cdec4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|