Skip to main content

Telemetry management and time series for SDSS-V

Project description

cerebro

Versions Documentation Status Test Status codecov

A library to gather time-series data from different sources and store them, with focus on InfluxDB databases. Documentation and concepts are defined here.

Installation

In general you should be able to install cerebro by doing

pip install sdss-cerebro

To build from source, use

git clone git@github.com:sdss/cerebro
cd cerebro
pip install .

Use

cerebro is meant to run as a daemon. The simplest way to run it is simply

cerebro start

This will run all the sources and use all the observers. You can define a specific profile to use

cerebro --profile lvm-lab start

or a series of sources

cerebro --sources lvm_govee_clean_room,lvm_sens4_r1 start

Normally cerebro will run in detached/daemon mode. It's also possible to pass the flag --debug (cerebro start --debug) to run the code in the foreground.

Run cerebro --help to get all the options available.

Development

cerebro uses poetry for dependency management and packaging. To work with an editable install it's recommended that you setup poetry and install cerebro in a virtual environment by doing

poetry install

Pip does not support editable installs with PEP-517 yet. That means that running pip install -e . will fail because poetry doesn't use a setup.py file. As a workaround, you can use the create_setup.py file to generate a temporary setup.py file. To install cerebro in editable mode without poetry, do

pip install poetry
python create_setup.py
pip install -e .

The style code is black.

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

sdss_cerebro-1.0.3.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

sdss_cerebro-1.0.3-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

Details for the file sdss_cerebro-1.0.3.tar.gz.

File metadata

  • Download URL: sdss_cerebro-1.0.3.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for sdss_cerebro-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1561b8a63f1756ff41d53fa99ebce76c23b272d83212335e6e0eda628c5a0a4d
MD5 5316e92e18e7a9a4fac829611878a912
BLAKE2b-256 06906bf5d8c73fd971f139ffea20f3b1f04048e311d8680f0276a70fef36beff

See more details on using hashes here.

File details

Details for the file sdss_cerebro-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: sdss_cerebro-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for sdss_cerebro-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 48f4ef946c6fe4a23ccb7f70a28385b7a4595012102b1fbeb4a66529209d3f26
MD5 d103799b41b830c6c205e4ec652af074
BLAKE2b-256 31168366ed8b465ecb342f22c1a0cbed9e7b501a6832a669151c1bcf9820c782

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