Python library for interacting with the CHESS metadata service
Project description
chessdata-pyclient
Python library for interacting with foxden / CHESS data services
Installation
- 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.
Examples
- 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')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for chessdata_pyclient-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 743b467d412a30bb55dd13271e083317cd1ab721fcb41bc95db3de05ec94068f |
|
MD5 | 85f74c85f788338bba52c2531a882a83 |
|
BLAKE2b-256 | 363d213d2c9447183db39da98a5118cb596b412a3ed45ac6e1228ab5bd516e57 |