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_BUNDLE
to a path to a CA bundle to use (for SSL). - Set
$PATH
to include the path to afoxden
CLI executable (so thatchessdata-pyclient
can runfoxden token create <scope>
) - Set
$KRB5CCNAME
to 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')