diff --git a/.gitignore b/.gitignore index b6e4761..e0645f5 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,5 @@ dmypy.json # Pyre type checker .pyre/ + +test.py \ No newline at end of file diff --git a/README.md b/README.md index 022a997..66c1781 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# pyuptimekuma +# pythonkuma Simple Python wrapper for Uptime Kuma ## Installation ```shell -python3 -m pip install pyuptimekuma +pip install pythonkuma ``` ## Example @@ -14,30 +14,25 @@ import asyncio import aiohttp -from pyuptimekuma import UptimeKuma +from pythonkuma 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() + uptime_kuma = UptimeKuma(session, URL, USERNAME, PASSWORD) + response = await uptime_kuma.async_get_monitors() print(response.data) -loop = asyncio.get_event_loop() -loop.run_until_complete(main()) +asyncio.run(main()) ``` ## Credit -I would like to give a special thanks to these repositories since a lot of code has been inspired by them. - -- [ludeeus/pyuptimerobot](https://github.com/ludeeus/pyuptimerobot) -- [meichthys/utptime_kuma_monitor](https://github.com/meichthys/utptime_kuma_monitor) \ No newline at end of file +This library is a fork of **pyuptimekuma** by [@jayakornk](https://github.com/jayakornk)