Skip to main content

A tool for retreiving and unpacking stored ELS data.

Project description

Readme

A essential tool for retreiving current and past data from the South African Large Telescope.

Based on original code from the SALT ELS-WebViewer and powered by SQLalchemy and the pymysql database driver.

Please contact SALT Software for a username and password for access to the database.

Let's Get To It

from salt_cellar import salt_cellar

cellar = salt_cellar.SaltCellar("mysql+pymysql://username:password@db.suth.saao.ac.za/els_view")

results = cellar.single_query(
    [
        "BMS:analogue status:Glycol tank temp>dbl",
    ],
    start=datetime(2020, 1, 23, 18, 0, 0),
    end=datetime(2020, 1, 23, 18, 10, 0),
)

for row in results:
    print(row)

Development

Requirements

  • Python 3.6
  • Pipenv

Clone from BitBucket

Run installation command: make install

Copy config.py.example to config.py and update the username and password

Execute ./example.py

This project uses Semantic Versioning, for more details see https://semver.org/

Project details


Download files

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

Files for salt-cellar, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size salt_cellar-0.1.1-py3-none-any.whl (7.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size salt_cellar-0.1.1.tar.gz (6.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page