Utility classes for working with the LSST EFD.
Project description
LSST EFD Client
Utility classes for working with the LSST EFD.
Free software: MIT license
Features
The client EfdClient, has several useful functions.
get_topics: Return the topics in the EFD.
get_fields: Return the fields in a particular topic
build_time_range_query: Build an InfluxQL query for a topic and time range
select_time_series: Return a DataFrame containing results of a time range query
select_packed_time_series: Return a DataFrame with high cadence telemetry expanded into a single DataFrame.
select_top_n: Return a DataFrame with the results of just the most recent rows.
See example notebooks here.
Authentication
Credentials for authenticating to available EFDs are held in a special file on disk. By default, this location is ~/.lsst/notebook_auth.yaml. The file must exist and must have 006 permissions set. The format of the file is a YAML dictionary of valid EFD names. Each EFD entry should contain the username, password, and host for the EFD. Currently, my file looks like this:
lab_efd:
username: <user>
password: <passwd>
host: "test-influxdb-efd.lsst.codes"
summit_efd:
username: <user>
password: <passwd>
host: "summit-influxdb-efd.lsst.codes"
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2019-12-23)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
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
Hashes for lsst_efd_client-0.1.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1b8c5d0a70ad0d5c37fbe8788efd6bb03d7a3eaba7915d82bb6bafcf5a5009f |
|
MD5 | 9e010e20155a1a17d0ec2847352c8a98 |
|
BLAKE2b-256 | e47d72121080a00fb95d6f6f942329fddd498d0ea9d988322909737ea35b6dd8 |