Python library for interacting with the CHESS metadata service
Project description
chessdata-pyclient
Python library for interacting with the CHESS metadata service
Installation
- In an environment of your choosing, run
python setup.py install
- Set the environment variable
REQUESTS_CA_BUNDLE
to a path to a CA bundle to use (for SSL). - (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
Built Distribution
Close
Hashes for chessdata_pyclient-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1896ca265af0ce33d4eb65d70e405dc64bb55a02091c414c68dc7db399b45f23 |
|
MD5 | 64accf5713bd69c23773ac6e8ec088a1 |
|
BLAKE2b-256 | 0e15b2324ef0a63ffe1f40ab98d0015fc7496b9063ba79b1bbee3e8f98a107b9 |