simbashlog-notify-helper-py: A Python3 package that is a helper for simbashlog notifiers
simbashlog-notify-helper is a Python3 package designed to simplify the process of creating simbashlog notifiers.
- Automatically handles and parses command-line arguments passed by
simbashlog. - Supports loading from both
*.logfiles and*_log.jsonfiles.- Provides access to log data in a structured format using pandas DataFrames.
- Summary generation.
- Provides access to log severity levels and their details based on RFC 5424 to create a more informative notifier.
- Provides functions so that validations are carried out and other aids that greatly simplify the creation of a notifier script.
Note: This package is designed to be used with
simbashlog. If you are not familiar withsimbashlog, please have a look at the "core" repository:
It is possible that
pipis not yet installed. If this is not the case, you will be prompted to install it. Confirm the installation.
pip install git+https://github.com/fuchs-fabian/simbashlog-notify-helper-pyDownload the repository and navigate to the directory containing the setup.py file.
pip install .pip listpip show simbashlog-notify-helper#!/usr/bin/env python3
import simbashlog_notify_helper as snh # type: ignore
def main():
# Process command-line arguments
stored_log_info = snh.process_arguments()
# Your notifier logic here (for more information, see the examples in the repository)
# ...
if __name__ == "__main__":
main()pip uninstall simbashlog-notify-helperIf you have any bugs, suggestions or feedback, feel free to create an issue or create a pull request with your changes.
If you like simbashlog's ecosystem, you think it is useful and saves you a lot of work and nerves and lets you sleep better, please give it a star and consider donating.