pythonkuma 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pythonkuma-0.3.0 → pythonkuma-0.3.1}/LICENSE +1 -1
- pythonkuma-0.3.1/PKG-INFO +97 -0
- pythonkuma-0.3.1/README.md +80 -0
- {pythonkuma-0.3.0 → pythonkuma-0.3.1}/pyproject.toml +3 -3
- {pythonkuma-0.3.0 → pythonkuma-0.3.1}/pythonkuma/__init__.py +1 -1
- {pythonkuma-0.3.0 → pythonkuma-0.3.1}/pythonkuma/uptimekuma.py +1 -1
- pythonkuma-0.3.0/PKG-INFO +0 -54
- pythonkuma-0.3.0/README.md +0 -37
- {pythonkuma-0.3.0 → pythonkuma-0.3.1}/.gitignore +0 -0
- {pythonkuma-0.3.0 → pythonkuma-0.3.1}/pythonkuma/exceptions.py +0 -0
- {pythonkuma-0.3.0 → pythonkuma-0.3.1}/pythonkuma/models.py +0 -0
- {pythonkuma-0.3.0 → pythonkuma-0.3.1}/pythonkuma/py.typed +0 -0
- {pythonkuma-0.3.0 → pythonkuma-0.3.1}/pythonkuma/update.py +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pythonkuma
|
|
3
|
+
Version: 0.3.1
|
|
4
|
+
Summary: Simple Python wrapper for Uptime Kuma
|
|
5
|
+
Project-URL: Source, https://github.com/tr4nt0r/pythonkuma
|
|
6
|
+
Project-URL: Documentation, https://tr4nt0r.github.io/pythonkuma
|
|
7
|
+
Author-email: Manfred Dennerlein Rodelo <manfred@dennerlein.name>, Jayakorn Karikan <jayakornk@gmail.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Requires-Python: >=3.12
|
|
13
|
+
Requires-Dist: aiohttp>=3.12.9
|
|
14
|
+
Requires-Dist: mashumaro>=3.13.1
|
|
15
|
+
Requires-Dist: prometheus-client>=0.21.0
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# pythonkuma
|
|
19
|
+
|
|
20
|
+
Simple Python wrapper for Uptime Kuma
|
|
21
|
+
|
|
22
|
+
[](https://github.com/tr4nt0r/pythonkuma/actions)
|
|
23
|
+
[](https://codecov.io/gh/pythonkuma/pynecil)
|
|
24
|
+
[](https://badge.fury.io/py/pythonkuma)
|
|
25
|
+

|
|
26
|
+
[](https://www.buymeacoffee.com/tr4nt0r)
|
|
27
|
+
[](https://github.com/sponsors/tr4nt0r)
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 📖 Documentation
|
|
32
|
+
|
|
33
|
+
- **Full Documentation**: [https://tr4nt0r.github.io/pythonkuma](https://tr4nt0r.github.io/pythonkuma)
|
|
34
|
+
- **Source Code**: [https://github.com/tr4nt0r/pythonkuma](https://github.com/tr4nt0r/pythonkuma)
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 📦 Installation
|
|
39
|
+
|
|
40
|
+
```shell
|
|
41
|
+
pip install pythonkuma
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Example
|
|
45
|
+
|
|
46
|
+
```python
|
|
47
|
+
import asyncio
|
|
48
|
+
|
|
49
|
+
import aiohttp
|
|
50
|
+
|
|
51
|
+
from pythonkuma import UptimeKuma
|
|
52
|
+
|
|
53
|
+
URL = "https://uptime.exampe.com"
|
|
54
|
+
API_KEY = "api_key"
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
async def main():
|
|
58
|
+
|
|
59
|
+
async with aiohttp.ClientSession() as session:
|
|
60
|
+
uptime_kuma = UptimeKuma(session, URL, API_KEY)
|
|
61
|
+
response = await uptime_kuma.metrics()
|
|
62
|
+
print(response)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
asyncio.run(main())
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## 🛠 Contributing
|
|
71
|
+
|
|
72
|
+
Contributions are welcome! To contribute:
|
|
73
|
+
|
|
74
|
+
1. Fork the repository.
|
|
75
|
+
2. Create a new branch.
|
|
76
|
+
3. Make your changes and commit them.
|
|
77
|
+
4. Submit a pull request.
|
|
78
|
+
|
|
79
|
+
Make sure to follow the [contributing guidelines](CONTRIBUTING.md).
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## 📜 License
|
|
84
|
+
|
|
85
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## ❤️ Support
|
|
90
|
+
|
|
91
|
+
If you find this project useful, consider [buying me a coffee ☕](https://www.buymeacoffee.com/tr4nt0r) or [sponsoring me on GitHub](https://github.com/sponsors/tr4nt0r)!
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Credit
|
|
96
|
+
|
|
97
|
+
This library is a fork of **pyuptimekuma** by [@jayakornk](https://github.com/jayakornk)
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# pythonkuma
|
|
2
|
+
|
|
3
|
+
Simple Python wrapper for Uptime Kuma
|
|
4
|
+
|
|
5
|
+
[](https://github.com/tr4nt0r/pythonkuma/actions)
|
|
6
|
+
[](https://codecov.io/gh/pythonkuma/pynecil)
|
|
7
|
+
[](https://badge.fury.io/py/pythonkuma)
|
|
8
|
+

|
|
9
|
+
[](https://www.buymeacoffee.com/tr4nt0r)
|
|
10
|
+
[](https://github.com/sponsors/tr4nt0r)
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 📖 Documentation
|
|
15
|
+
|
|
16
|
+
- **Full Documentation**: [https://tr4nt0r.github.io/pythonkuma](https://tr4nt0r.github.io/pythonkuma)
|
|
17
|
+
- **Source Code**: [https://github.com/tr4nt0r/pythonkuma](https://github.com/tr4nt0r/pythonkuma)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 📦 Installation
|
|
22
|
+
|
|
23
|
+
```shell
|
|
24
|
+
pip install pythonkuma
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
import asyncio
|
|
31
|
+
|
|
32
|
+
import aiohttp
|
|
33
|
+
|
|
34
|
+
from pythonkuma import UptimeKuma
|
|
35
|
+
|
|
36
|
+
URL = "https://uptime.exampe.com"
|
|
37
|
+
API_KEY = "api_key"
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
async def main():
|
|
41
|
+
|
|
42
|
+
async with aiohttp.ClientSession() as session:
|
|
43
|
+
uptime_kuma = UptimeKuma(session, URL, API_KEY)
|
|
44
|
+
response = await uptime_kuma.metrics()
|
|
45
|
+
print(response)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
asyncio.run(main())
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 🛠 Contributing
|
|
54
|
+
|
|
55
|
+
Contributions are welcome! To contribute:
|
|
56
|
+
|
|
57
|
+
1. Fork the repository.
|
|
58
|
+
2. Create a new branch.
|
|
59
|
+
3. Make your changes and commit them.
|
|
60
|
+
4. Submit a pull request.
|
|
61
|
+
|
|
62
|
+
Make sure to follow the [contributing guidelines](CONTRIBUTING.md).
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## 📜 License
|
|
67
|
+
|
|
68
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## ❤️ Support
|
|
73
|
+
|
|
74
|
+
If you find this project useful, consider [buying me a coffee ☕](https://www.buymeacoffee.com/tr4nt0r) or [sponsoring me on GitHub](https://github.com/sponsors/tr4nt0r)!
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Credit
|
|
79
|
+
|
|
80
|
+
This library is a fork of **pyuptimekuma** by [@jayakornk](https://github.com/jayakornk)
|
|
@@ -39,8 +39,8 @@ include = [
|
|
|
39
39
|
|
|
40
40
|
[tool.hatch.envs.default]
|
|
41
41
|
dependencies = [
|
|
42
|
-
"ruff==0.12.
|
|
43
|
-
"aiohttp==3.12.
|
|
42
|
+
"ruff==0.12.3",
|
|
43
|
+
"aiohttp==3.12.14",
|
|
44
44
|
"prometheus-client==0.22.1",
|
|
45
45
|
"mashumaro==3.16",
|
|
46
46
|
"mkdocs-material==9.6.15",
|
|
@@ -49,7 +49,7 @@ dependencies = [
|
|
|
49
49
|
|
|
50
50
|
[tool.hatch.envs.hatch-static-analysis]
|
|
51
51
|
dependencies = [
|
|
52
|
-
"ruff==0.12.
|
|
52
|
+
"ruff==0.12.3",
|
|
53
53
|
]
|
|
54
54
|
config-path = "ruff.toml"
|
|
55
55
|
|
|
@@ -79,7 +79,7 @@ class UptimeKuma:
|
|
|
79
79
|
)
|
|
80
80
|
request.raise_for_status()
|
|
81
81
|
except ClientResponseError as e:
|
|
82
|
-
if e.status
|
|
82
|
+
if e.status == HTTPStatus.UNAUTHORIZED:
|
|
83
83
|
msg = "Authentication failed for %s"
|
|
84
84
|
raise UptimeKumaAuthenticationException(msg, str(url)) from e
|
|
85
85
|
msg = "Request for %s failed with status code %s"
|
pythonkuma-0.3.0/PKG-INFO
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: pythonkuma
|
|
3
|
-
Version: 0.3.0
|
|
4
|
-
Summary: Simple Python wrapper for Uptime Kuma
|
|
5
|
-
Project-URL: Source, https://github.com/tr4nt0r/pythonkuma
|
|
6
|
-
Project-URL: Documentation, https://tr4nt0r.github.io/pythonkuma
|
|
7
|
-
Author-email: Manfred Dennerlein Rodelo <manfred@dennerlein.name>, Jayakorn Karikan <jayakornk@gmail.com>
|
|
8
|
-
License-Expression: MIT
|
|
9
|
-
License-File: LICENSE
|
|
10
|
-
Classifier: Operating System :: OS Independent
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Requires-Python: >=3.12
|
|
13
|
-
Requires-Dist: aiohttp>=3.12.9
|
|
14
|
-
Requires-Dist: mashumaro>=3.13.1
|
|
15
|
-
Requires-Dist: prometheus-client>=0.21.0
|
|
16
|
-
Description-Content-Type: text/markdown
|
|
17
|
-
|
|
18
|
-
# pythonkuma
|
|
19
|
-
Simple Python wrapper for Uptime Kuma
|
|
20
|
-
|
|
21
|
-
## Installation
|
|
22
|
-
|
|
23
|
-
```shell
|
|
24
|
-
pip install pythonkuma
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Example
|
|
28
|
-
|
|
29
|
-
```python
|
|
30
|
-
import asyncio
|
|
31
|
-
|
|
32
|
-
import aiohttp
|
|
33
|
-
|
|
34
|
-
from pythonkuma import UptimeKuma
|
|
35
|
-
|
|
36
|
-
URL = "https://uptime.exampe.com"
|
|
37
|
-
API_KEY = "api_key"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
async def main():
|
|
41
|
-
|
|
42
|
-
async with aiohttp.ClientSession() as session:
|
|
43
|
-
uptime_kuma = UptimeKuma(session, URL, API_KEY)
|
|
44
|
-
response = await uptime_kuma.metrics()
|
|
45
|
-
print(response)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
asyncio.run(main())
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Credit
|
|
53
|
-
|
|
54
|
-
This library is a fork of **pyuptimekuma** by [@jayakornk](https://github.com/jayakornk)
|
pythonkuma-0.3.0/README.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# pythonkuma
|
|
2
|
-
Simple Python wrapper for Uptime Kuma
|
|
3
|
-
|
|
4
|
-
## Installation
|
|
5
|
-
|
|
6
|
-
```shell
|
|
7
|
-
pip install pythonkuma
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```python
|
|
13
|
-
import asyncio
|
|
14
|
-
|
|
15
|
-
import aiohttp
|
|
16
|
-
|
|
17
|
-
from pythonkuma import UptimeKuma
|
|
18
|
-
|
|
19
|
-
URL = "https://uptime.exampe.com"
|
|
20
|
-
API_KEY = "api_key"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
async def main():
|
|
24
|
-
|
|
25
|
-
async with aiohttp.ClientSession() as session:
|
|
26
|
-
uptime_kuma = UptimeKuma(session, URL, API_KEY)
|
|
27
|
-
response = await uptime_kuma.metrics()
|
|
28
|
-
print(response)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
asyncio.run(main())
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Credit
|
|
36
|
-
|
|
37
|
-
This library is a fork of **pyuptimekuma** by [@jayakornk](https://github.com/jayakornk)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|