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.

Source Distribution

salt_cellar-0.1.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

salt_cellar-0.1.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file salt_cellar-0.1.1.tar.gz.

File metadata

  • Download URL: salt_cellar-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for salt_cellar-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3a35c1e02c0f0bb30ce7d688b896044bc6905006f44f38732ec3a02a9b89eb6a
MD5 b1d1cf5042294ea9fa6b4e990fb5d923
BLAKE2b-256 fff117ca5c408226d02f7126a870550a6dcf2c7d366ec23fd758c0f7b50df03e

See more details on using hashes here.

File details

Details for the file salt_cellar-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: salt_cellar-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for salt_cellar-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5aecd14c6d1568bd4a6486aa4a338590ddb55963e217658c2d0aa6e686c1f7a3
MD5 db52e3ff21e6b310d30b148bb9bc1624
BLAKE2b-256 c4e7aadf45027c14271dae0e5ffa273666a2cc09b58097baae3217509c10e65b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page