uptime-kuma-api/scripts/build_notification_docstring.py

10 lines
422 B
Python
Raw Normal View History

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 {option}: (optional) Notification option for type NotificationType.{provider.name}")
print(f":type {option}: {type_}")
print("")