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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fa410c0e726949a95077a34e33eeee3760bc884b0a9e812f303d2fd81f27542 |
|
MD5 | c25761c10fb8a4ff0eb96a7a387d04d7 |
|
BLAKE2b-256 | e608466f3d9f05f6da76718e819e8ea8e1a9bf03ae4f1894364fc737975466de |