Skip to main content

Obstech python utilities

Utilities for El Sauce observatory to make life easier dealing with MySQL, MQTT, Google sheets, mailing, Telegram, command line options and configuration files, socket/serial connections, etc.

Installation

  • From local sources, within a virtual environment, pip install -e .
  • From python repository, within a virtual environment, pip install obstechutils.

Utilities

  • db/: connect to MySQL plus observatory-specific queries
  • meteo/: basic meteo functions plus DIMM analysis
  • sensors/: handle the various weather sensors at the observatory
  • cameras/: pythonic drivers for cameras (so far ASI)
  • argparse/: extensions to argparse
  • google: down from google services like sheets
  • roof: list roof info
  • mqtt: MQTT client
  • inventory: read inventory from the main Google Sheets database
  • credentials: deal with logging into servers
  • email: basic email sender
  • telegram: basic Telegram client
  • connection: unified interface to serial port/socket connections
  • coordinates: coordinates utilities (e.g. GeoidLocation)
  • array: array utilities such as masked array interpolation/binning
  • dataclasses: dataclass improvements with pydantic
  • rinex: some basic utils for RINEX GPS format
  • precise_timing: close to real time tools, such as periodic calls of functions

Scripts

Upon installation of the package the following scripts will be made available from the command line.

ElSauce User Interface scripts

  • monitor_weather_sensor SENSOR
  • mix_weather_sensors
  • update_sql_table DATABASE TABLE

Miscellaneous

  • mqtt_console: display MQTT messages on the weather workstation
  • report_device_status: check whether PCs and devices are turned on
  • list_roofs: list roof parameters

Credentials file

The credentials file should be in ~/.config/obstechutils with the following format

mail:
    device_status:
        username:     xxxxxxx@yyyy.zzz
        password:     xxxx xxxx xxxx xxxx
        server:       smtp.xxxx.yyy
        port:         465
mqtt:
    generic_obstech:
        username:     obstech
        password:     xxxxxxxxxx
        server:       yyy.yyy.yyy
        port:         1883
        qos:          2
        timeout:      60
mysql:
    generic_obstech:
        username:     obstech
        password:     xxxxxxxxxx
        server:       yyy.yyy.yyy.yyy
        port:         3306
googleapi:
    generic_obstech:
        username:     googleuser@gmail.com
        token:        googleapi/token-generic_obstech.json
        credentials:  googleapi/credentials-generic_obstech.json
        scopes:
        - https://www.googleapis.com/auth/spreadsheets.readonly

Metadata

Release files for obstechutils 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for obstechutils 0.2.3
File Size Uploaded
obstechutils-0.2.3.tar.gz 58.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for obstechutils 0.2.3
File Interpreter ABI Platform
obstechutils-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 127.6 kB

Release files / obstechutils-0.2.3.tar.gz

Download URL obstechutils-0.2.3.tar.gz
Size 58.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e334a6a863f24512901f3a36b836065d095dc7e6686ae962f9981fc5b3193e0d
BLAKE2b-256 checksum
How to use checksums
862ff99ee6f53985b888d7af3f77a7162c7f1242e6ce88ed58d32b589c36b9ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / obstechutils-0.2.3-py3-none-any.whl

Download URL obstechutils-0.2.3-py3-none-any.whl
Size 69.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51c51eba96f0e50abeac00c113011f357eb79f65384891987b395c64960f11de
BLAKE2b-256 checksum
How to use checksums
c12988672074a578fb92867457e1e824567ca033eae43604c6e55cf15c9342bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.34

2 release files

0.1.25

2 release files

0.1.24

2 release files

0.1.23

2 release files

0.1.22

2 release files

0.1.21

2 release files

0.1.20

2 release files

0.1.19

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.7

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page