Metadata-Version: 2.1
Name: ph4-monitlib
Version: 0.0.4
Summary: UPS Monitoring library
Home-page: https://github.com/ph4r05/ph4-monitlib
Author: Dusan Klinec
Author-email: dusan.klinec@gmail.com
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Provides-Extra: dev
Provides-Extra: test
Provides-Extra: docs
License-File: LICENSE

# 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`

```shell
pip3 install -U pre-commit
pre-commit install
```

Auto fix
```shell
pre-commit run --all-files
```

Plugin version update
```shell
pre-commit autoupdate
```
