uptime-kuma-api/scripts/build_notification_docstring.py
2023-01-17 21:01:55 +01:00

7 lines
383 B
Python

from uptime_kuma_api import notification_provider_options
for provider in notification_provider_options:
provider_options = notification_provider_options[provider]
for option in provider_options:
type_ = provider_options[option]["type"]
print(f":param {type_}, optional {option}: Notification option for ``type`` :attr:`~.NotificationType.{provider.name}`")