Simple Python wrapper for Uptime Kuma
python3 -m pip install pyuptimekuma
import asyncio
import aiohttp
from pyuptimekuma import UptimeKuma
URL = ""
USERNAME = ""
PASSWORD = ""
VERIFY_SSL = True
async def main():
async with aiohttp.ClientSession() as session:
uptime_robot_api = UptimeKuma(session, URL, USERNAME, PASSWORD, VERIFY_SSL)
response = await uptime_robot_api.async_get_monitors()
print(response.data)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
I would like to give a special thanks to these repositories since a lot of code has been inspired by them.