Skip to main content

Python library for interacting with the CHESS metadata service

Project description

chessdata-pyclient

Python library for interacting with foxden / CHESS data services

Installation

  1. In an environment of your choosing, run pip install chessdata-pyclient
  2. Set the environment variable $REQUESTS_CA_BUNDLE to a path to a CA bundle to use (for SSL).
  3. Set $PATH to include the path to a foxden CLI executable (so that chessdata-pyclient can run foxden token create <scope>)
  4. 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

chessdata_pyclient-0.0.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

chessdata_pyclient-0.0.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for chessdata_pyclient-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e988a6c1baa07c87da05f9bc54ca203d55e754386095ee1a3638ec84dc71a520
MD5 6ab5cfbf1b3ac73cc99d629443e6f802
BLAKE2b-256 d01bdcb367af914b2e7f643ccb690ca93e812597b79f9a54d63cf66f842413f7

See more details on using hashes here.

File details

Details for the file chessdata_pyclient-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for chessdata_pyclient-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 342a2d47f2f6e9f64d11df4daf4c7cc7dcaa117ee84daeab051e9087e0892aca
MD5 30522713d35981b6782dc8148b44b039
BLAKE2b-256 bc2f314841a7db6334f9b6bb27de9399120e371f8f6efa19445152627d7dad87

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page