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.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

chessdata_pyclient-0.0.2-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

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