Skip to main content

Python library for interacting with the CHESS metadata service

Project description

chessdata-pyclient

Python library for interacting with the CHESS metadata service

Installation

  1. In an environment of your choosing, run python setup.py install
  2. Set the environment variable REQUESTS_CA_BUNDLE to a path to a CA bundle to use (for SSL).
  3. (optional, but recommended) Run kinit -c ~/krb5_ccache <user>

Examples

  • Search the CHESS metadata database for records on tomography scans taken at ID3A:
    from chessdata import query
    records = query('{"beamline":"3a" "technique":"tomography"}')
    
  • Submit a new record to the CHESS metadata database from a file, record.json, under the 'test' schema:
    from chessdata import insert
    insert('record.json', 'test')
    

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

Uploaded Source

Built Distribution

chessdata_pyclient-0.0.0-py3-none-any.whl (2.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