ska-sa / katsdpservices

Common code for SDP services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Common code for MeerKAT Science Data Processor services

This contains common code used by services that make up the Science Data Processor subsystem of the MeerKAT radio telescope. It includes

  • A common logging setup, which examines environment variables to configure some logging options and specify a server to receive logs in Graylog format.
  • An extension to argparse to receive command-line options via katsdptelstate.
  • Signal handlers to restart the process and adjust log levels.
  • Utilities to simplify integration with aiomonitor.
  • A simple wrapper around netifaces to get the IP address of a network interface.

Changelog

1.3

  • Packaging modernisation (#34)
  • Drop some old Python 2 workarounds (#34)
  • Switch testing to pytest (#34)
  • Fix flake8 for pre-commit
  • Add --aiomonitor-webui-port command-line option (#35)

1.2

  • Resolve logging destination at startup (#33)

1.1

  • Add telstate_endpoint attribute to argparse result (#29)
  • Add a custom log field with timestamp in microsecond precision (#21)
  • Add pre-commit hooks

1.0

First public release.

About

Common code for SDP services

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%