Python library for interacting with foxden / CHESS data services
- In an environment of your choosing, run
pip install chessdata-pyclient - Set the environment variable
$REQUESTS_CA_BUNDLEto a path to a CA bundle to use (for SSL). - Set
$PATHto include the path to afoxdenCLI executable (so thatchessdata-pyclientcan runfoxden token create <scope>) - Set
$KRB5CCNAMEto be the full path to a file containing a valid kerberos ticket. It is up to the user to make sure the ticket is not expired.
- Search the CHESS metadata database for records on tomography scans taken at ID3A:
from chessdata import query records = query('{"beamline":"3a" "technique":"tomography"}')
- Search the CHESS spec scans database for all scan records from the "pi-nnnn-x" BTR:
from chessdata import query records = query('{"btr": "pi-nnnn-x"}', url='https://foxden-scans.classe.cornell.edu:8390')