Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uninett/argus-notification-cookiecutter
Cokkiecutter for making new argus notification plugins
https://github.com/uninett/argus-notification-cookiecutter
Last synced: about 1 month ago
JSON representation
Cokkiecutter for making new argus notification plugins
- Host: GitHub
- URL: https://github.com/uninett/argus-notification-cookiecutter
- Owner: Uninett
- Created: 2023-04-14T12:24:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-14T10:01:09.000Z (11 months ago)
- Last Synced: 2024-02-14T11:23:55.342Z (11 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.RST
Awesome Lists containing this project
README
How to use this cookiecutter
============================If you do not have cookiecutter you will have to install it.
Then, run::
cookiecutter argus_notification_cookiecutter
It will ask you for two things:
1. A snake case name for your notification system
2. Your dependencies. If more than one, separate them with a commaFor example:
If you answered "discord" for ``notification_system`` a directory is created
that is called ``argus_notification_discord``.Here's the generated directory tree inside ``argus_notification_discord``::
├── LICENSE
├── Makefile
├── pyproject.toml
├── README.rst
├── runtests.py
├── src
│ └── argus_notification_discord.py
├── tests
│ ├── __init__.py
│ ├── test_argus_notification_discord.py
│ └── test_settings.py
└── tox.iniWrite your plugin in the file ``src/argus_notification_discord.py``, your tests
in ``tests/test_argus_notification_discord.py`` and most importantly your docs
in ``README.rst``.Your README must explain any extra django settings needed besides appending to
``MEDIA_PLUGINS``, for instance any settings common for all destinations. The
generated README has a minimal skeleton, upper case text must be replaced.Tests can be run with ``tox`` or directly via ``runtests.py``.