add readme

This commit is contained in:
lucasheld 2022-07-10 21:57:22 +02:00
parent a08d3b4613
commit 963adf8617
6 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,21 @@
from enum import Enum
class NotificationType(str, Enum):
{%- for notification_provider in notification_providers %}
{%- set name = notification_provider["name"] %}
{{ name.upper().replace(".", "_") }} = "{{ name }}"
{%- endfor %}
notification_provider_options = {
{%- for notification_provider in notification_providers %}
{%- set name = notification_provider["name"] %}
NotificationType.{{ name.upper().replace(".", "_") }}: [
{%- for input in notification_provider["inputs"] %}
"{{ input }}",
{%- endfor %}
],
{%- endfor %}
}