Skip to main content

Utility classes for working with the LSST EFD.

Project description

LSST EFD Client

https://img.shields.io/pypi/v/lsst-efd-client.svg https://img.shields.io/travis/lsst-sqre/lsst-efd-client.svg

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: "influxdb-summit-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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lsst-efd-client-0.1.10.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

lsst_efd_client-0.1.10-py2.py3-none-any.whl (7.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file lsst-efd-client-0.1.10.tar.gz.

File metadata

  • Download URL: lsst-efd-client-0.1.10.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.1

File hashes

Hashes for lsst-efd-client-0.1.10.tar.gz
Algorithm Hash digest
SHA256 8f8970976b800f91ddf8dbbda9098fff4fcd9f8617f97d85fdc17254dbd62e4e
MD5 1bc8d4f0fc2752cbd364576ee4814fce
BLAKE2b-256 78e3dca440a16a1b6cde3f73c025932a7ef28d6d8b93e6b16245a54dcc947670

See more details on using hashes here.

File details

Details for the file lsst_efd_client-0.1.10-py2.py3-none-any.whl.

File metadata

  • Download URL: lsst_efd_client-0.1.10-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.1

File hashes

Hashes for lsst_efd_client-0.1.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a6627b4788c2f78d82405b2544ac3ff1b4d24c4df7e679bfa14b9218b7ab0d28
MD5 c5486ee6d62fc84a6bc1a37fbe0f92e6
BLAKE2b-256 52ed3ce3fe45f0e6c53ba56b9cc6946367015a3de4fff0965ef68eca5f825a9d

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