python-ntfy 0.4.1__tar.gz → 0.4.2__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.
- {python_ntfy-0.4.1 → python_ntfy-0.4.2}/PKG-INFO +2 -2
- {python_ntfy-0.4.1 → python_ntfy-0.4.2}/README.md +1 -1
- {python_ntfy-0.4.1 → python_ntfy-0.4.2}/pyproject.toml +1 -1
- python_ntfy-0.4.2/python_ntfy/__init__.py +3 -0
- python_ntfy-0.4.1/python_ntfy/__init__.py → python_ntfy-0.4.2/python_ntfy/_ntfy.py +28 -16
- {python_ntfy-0.4.1 → python_ntfy-0.4.2}/LICENSE +0 -0
- {python_ntfy-0.4.1 → python_ntfy-0.4.2}/python_ntfy/_get_functions.py +0 -0
- {python_ntfy-0.4.1 → python_ntfy-0.4.2}/python_ntfy/_send_functions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-ntfy
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: An ntfy library aiming for feature completeness
|
|
5
5
|
Home-page: https://github.com/MatthewCane/python-ntfy
|
|
6
6
|
License: MIT
|
|
@@ -93,7 +93,7 @@ These tools are also run in the CI pipeline and must pass before merging.
|
|
|
93
93
|
|
|
94
94
|
### Tests
|
|
95
95
|
|
|
96
|
-
This project is aiming for 95% code coverage. Any added features must include
|
|
96
|
+
This project is aiming for 95% code coverage. Any added features must include comprehensive tests.
|
|
97
97
|
|
|
98
98
|
#### Testing Steps
|
|
99
99
|
|
|
@@ -73,7 +73,7 @@ These tools are also run in the CI pipeline and must pass before merging.
|
|
|
73
73
|
|
|
74
74
|
### Tests
|
|
75
75
|
|
|
76
|
-
This project is aiming for 95% code coverage. Any added features must include
|
|
76
|
+
This project is aiming for 95% code coverage. Any added features must include comprehensive tests.
|
|
77
77
|
|
|
78
78
|
#### Testing Steps
|
|
79
79
|
|
|
@@ -11,24 +11,36 @@ Typical usage example:
|
|
|
11
11
|
|
|
12
12
|
import os
|
|
13
13
|
|
|
14
|
+
from ._get_functions import get_cached_messages
|
|
15
|
+
from ._send_functions import (
|
|
16
|
+
BroadcastAction,
|
|
17
|
+
HttpAction,
|
|
18
|
+
MessagePriority,
|
|
19
|
+
ViewAction,
|
|
20
|
+
send,
|
|
21
|
+
send_file,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class GetFunctionsMixin:
|
|
26
|
+
"""Mixin for getting messages."""
|
|
27
|
+
|
|
28
|
+
get_cached_messages = get_cached_messages
|
|
14
29
|
|
|
15
|
-
class NtfyClient:
|
|
16
|
-
"""A class for interacting with the ntfy notification service."""
|
|
17
30
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
)
|
|
31
|
+
class SendFunctionsMixin:
|
|
32
|
+
"""Mixin for sending messages."""
|
|
33
|
+
|
|
34
|
+
send = send
|
|
35
|
+
send_file = send_file
|
|
36
|
+
BroadcastAction = BroadcastAction
|
|
37
|
+
HttpAction = HttpAction
|
|
38
|
+
MessagePriority = MessagePriority
|
|
39
|
+
ViewAction = ViewAction
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class NtfyClient(GetFunctionsMixin, SendFunctionsMixin):
|
|
43
|
+
"""A class for interacting with the ntfy notification service."""
|
|
32
44
|
|
|
33
45
|
def __init__(
|
|
34
46
|
self,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|