Python library for interacting with the CHESS metadata service
- In an environment of your choosing, run
pip install chessdata-pyclient
- Set the environment variable
REQUESTS_CA_BUNDLE
to a path to a CA bundle to use (for SSL). - (optional, but recommended) Run
kinit -c ~/krb5_ccache <user>
- Search the CHESS metadata database for records on tomography scans taken at ID3A:
from chessdata import query records = query('{"beamline":"3a" "technique":"tomography"}')