ph4r05 / ph4-monitlib

Python library for building notification tools and watchdogs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monitoring library

Library contains several utility classes that help with building monitoring scripts.

  • Worker, synchronous, thread-backed worker processing tasks (lambdas) inserted to the queue
  • AsyncWorker, asynchronous worker processing coroutines enqueued to the task queue
  • FiFoComm, for client-server communication via named pipes (daemon vs notifier comm), use JWT protection (not included)
  • TcpComm, for client-server communication via TCP, use JWT protection (not included)
  • NotifyEmail, helper for sending notification emails via SMTP server (gmail tested)
  • TelegramBot, helper for sending notifications via Telegram, receive messages, send messages

Development

Install pre-commit hooks defined by .pre-commit-config.yaml

pip3 install -U pre-commit
pre-commit install

Auto fix

pre-commit run --all-files

Plugin version update

pre-commit autoupdate

About

Python library for building notification tools and watchdogs

License:MIT License


Languages

Language:Python 99.6%Language:Shell 0.4%