Skip to content

Commit fb04b79

Browse files
authored
Update README (#25)
1 parent 8de60e0 commit fb04b79

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,5 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130+
131+
test.py

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# pyuptimekuma
1+
# pythonkuma
22
Simple Python wrapper for Uptime Kuma
33

44
## Installation
55

66
```shell
7-
python3 -m pip install pyuptimekuma
7+
pip install pythonkuma
88
```
99

1010
## Example
@@ -14,30 +14,25 @@ import asyncio
1414

1515
import aiohttp
1616

17-
from pyuptimekuma import UptimeKuma
17+
from pythonkuma import UptimeKuma
1818

1919
URL = ""
2020
USERNAME = ""
2121
PASSWORD = ""
22-
VERIFY_SSL = True
2322

2423

2524
async def main():
2625

2726
async with aiohttp.ClientSession() as session:
28-
uptime_robot_api = UptimeKuma(session, URL, USERNAME, PASSWORD, VERIFY_SSL)
29-
response = await uptime_robot_api.async_get_monitors()
27+
uptime_kuma = UptimeKuma(session, URL, USERNAME, PASSWORD)
28+
response = await uptime_kuma.async_get_monitors()
3029
print(response.data)
3130

3231

33-
loop = asyncio.get_event_loop()
34-
loop.run_until_complete(main())
32+
asyncio.run(main())
3533

3634
```
3735

3836
## Credit
3937

40-
I would like to give a special thanks to these repositories since a lot of code has been inspired by them.
41-
42-
- [ludeeus/pyuptimerobot](https://github.com/ludeeus/pyuptimerobot)
43-
- [meichthys/utptime_kuma_monitor](https://github.com/meichthys/utptime_kuma_monitor)
38+
This library is a fork of **pyuptimekuma** by [@jayakornk](https://github.com/jayakornk)

0 commit comments

Comments
 (0)