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.

    • get_schema: Get metadata for the fields in a particular topic.

  • There are also some utilities for dealing with results of queries

    • merge_packed_time_series: Takes a dataframe with records that have multiple samples per entry and returns a dataframe with one record per sample.

    • rendezvous_dataframes: Extend on dataframe with data from another dataframe using the closest record in time in the past, in the future, or nearest overall.

See example notebooks here.

For more information, see the online docs.

CONTRIBUTING

For information on contributing to this project see this page.

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.

0.2.0 (2019-01-15)

  • Minimal functionality in place.

  • Docstrings complete.

0.3.0 (2019-01-31)

  • Unit tests added.

0.4.0 (2019-01-31)

  • Very minor doc updates.

  • Accidently pushed minor version when patch was meant.

0.5.0 (2020-05-29)

  • Switch to the segwarides based credentials.

0.6.0 (2021-02-11)

  • Fix bug in listing possible endpoints

  • Add some utility functionality and speed up unpacking packed time series (thank you RHL)

0.6.4 (2021-02-15)

  • Fix a regression that causes an exception when the name of one column is the same as the start of the name of another column

  • Add a test for the regression

0.7.0 (2021-03-24)

  • Add the get_schema method to fetch metadata about topic fields

  • Add a test for the schema parser

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.8.1.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

lsst_efd_client-0.8.1-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: lsst-efd-client-0.8.1.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.1

File hashes

Hashes for lsst-efd-client-0.8.1.tar.gz
Algorithm Hash digest
SHA256 a9f789c0f8408596491a327a648a1b187e7ddfa1ff8609eaa6e26a07f0f72e0f
MD5 960cb4c92f4d86c23194ae6195256fdd
BLAKE2b-256 6f36e8cb64db2c9b9b36291456298444fef83305c37c011161eb732fa5a4d63d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: lsst_efd_client-0.8.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.1

File hashes

Hashes for lsst_efd_client-0.8.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4bfad21e40bb5a70f030ce09221848cd5d73899d1e3987338f56e27e7749fd04
MD5 762e8b8bfc6c63924d6a394b50b12b1c
BLAKE2b-256 ecd3da93380ab39581163213e5efc45a6307ae5b66da761c440e03c2450821df

See more details on using hashes here.

Provenance

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