add readme
This commit is contained in:
parent
a08d3b4613
commit
963adf8617
6 changed files with 36 additions and 1 deletions
21
scripts/notification_providers.py.j2
Normal file
21
scripts/notification_providers.py.j2
Normal 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 %}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue