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.0.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

sdss_cerebro-1.0.0-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sdss_cerebro-1.0.0.tar.gz
  • Upload date:
  • Size: 25.0 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.0.tar.gz
Algorithm Hash digest
SHA256 7819a25bf8a4a0323e343a28871b825b9874308ce7b0896a01a9b330cfb636dd
MD5 86b6f878abffc7cf8b3b6069d3eede2d
BLAKE2b-256 2a1b731c947cab48e139fbddaee7062ba303d628a43c81f5fc1dba9d80ceb301

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sdss_cerebro-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e889b90195fb0833fffc3df459ce6aa2647588678d2d2aaca5061011a1dcb94
MD5 2e18a7a23c887f32c9491fa1e3d5e381
BLAKE2b-256 fede282f17cf6fb92ed1dd7e9362cdb7255b351836d59fe4f15e509958a52c5a

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