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

Uploaded Source

Built Distribution

sdss_cerebro-0.2.0-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file sdss-cerebro-0.2.0.tar.gz.

File metadata

  • Download URL: sdss-cerebro-0.2.0.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for sdss-cerebro-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9324e23e3ef0d600390825877a4db48bb0896a452776a41f5b1999e4c785c083
MD5 ae3681ac7c579aaa01620cb2d6b73645
BLAKE2b-256 e2ee39cae08fe3b3b8666cf87ace7044d88d0324fa16c3ac627c3da9e73209d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sdss_cerebro-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for sdss_cerebro-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e954d76bad669aec2ed7520a1f739ddaf33e160689b0aa68a860739bfe6174e
MD5 60813826f9b463028ffd619ac2635371
BLAKE2b-256 7145049a525fd303118491670180874194c8a2ae9e3030bc05335d12311e7cd2

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