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
File details
Details for the file chessdata_pyclient-0.0.4.tar.gz
.
File metadata
- Download URL: chessdata_pyclient-0.0.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e988a6c1baa07c87da05f9bc54ca203d55e754386095ee1a3638ec84dc71a520 |
|
MD5 | 6ab5cfbf1b3ac73cc99d629443e6f802 |
|
BLAKE2b-256 | d01bdcb367af914b2e7f643ccb690ca93e812597b79f9a54d63cf66f842413f7 |
File details
Details for the file chessdata_pyclient-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: chessdata_pyclient-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 342a2d47f2f6e9f64d11df4daf4c7cc7dcaa117ee84daeab051e9087e0892aca |
|
MD5 | 30522713d35981b6782dc8148b44b039 |
|
BLAKE2b-256 | bc2f314841a7db6334f9b6bb27de9399120e371f8f6efa19445152627d7dad87 |