notify-rs 0.6.1__cp314-cp314t-musllinux_1_2_x86_64.whl
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.
- notify_rs/__init__.py +6 -0
- notify_rs/__init__.pyi +82 -0
- notify_rs/_notify_rs.cpython-314t-x86_64-linux-musl.so +0 -0
- notify_rs/py.typed +0 -0
- notify_rs-0.6.1.dist-info/METADATA +148 -0
- notify_rs-0.6.1.dist-info/RECORD +9 -0
- notify_rs-0.6.1.dist-info/WHEEL +4 -0
- notify_rs-0.6.1.dist-info/licenses/LICENSE +19 -0
- notify_rs.libs/libgcc_s-6d2d9dc8.so.1 +0 -0
notify_rs/__init__.py
ADDED
notify_rs/__init__.pyi
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# stdlib
|
|
2
|
+
import os
|
|
3
|
+
import pathlib
|
|
4
|
+
import sys
|
|
5
|
+
from typing import List
|
|
6
|
+
|
|
7
|
+
PathLike = str | pathlib.Path | os.PathLike
|
|
8
|
+
|
|
9
|
+
class NotificationHandle:
|
|
10
|
+
if sys.platform != "win32":
|
|
11
|
+
if sys.platform == "linux":
|
|
12
|
+
|
|
13
|
+
def id(self) -> int: ... # noqa: A001 # pylint: disable=redefined-builtin
|
|
14
|
+
def update(self) -> NotificationHandle: ...
|
|
15
|
+
def appname(self, appname: str) -> NotificationHandle: ...
|
|
16
|
+
def summary(self, summary: str) -> NotificationHandle: ...
|
|
17
|
+
def subtitle(self, subtitle: str) -> NotificationHandle: ...
|
|
18
|
+
def image_path(self, path: PathLike) -> NotificationHandle: ...
|
|
19
|
+
def sound_name(self, name: str) -> NotificationHandle: ...
|
|
20
|
+
def body(self, body: str) -> NotificationHandle: ...
|
|
21
|
+
def icon(self, icon: PathLike) -> NotificationHandle: ...
|
|
22
|
+
def auto_icon(self) -> NotificationHandle: ...
|
|
23
|
+
def timeout(self, timeout: int) -> NotificationHandle: ...
|
|
24
|
+
def urgency(self, urgency: int) -> NotificationHandle: ...
|
|
25
|
+
def finalize(self) -> NotificationHandle: ...
|
|
26
|
+
|
|
27
|
+
if sys.platform == "win32":
|
|
28
|
+
|
|
29
|
+
def show(self) -> None: ...
|
|
30
|
+
|
|
31
|
+
else:
|
|
32
|
+
|
|
33
|
+
def show(self) -> NotificationHandle: ...
|
|
34
|
+
def get_appname(self) -> str: ...
|
|
35
|
+
def get_summary(self) -> str: ...
|
|
36
|
+
def get_subtitle(self) -> str | None: ...
|
|
37
|
+
def get_body(self) -> str: ...
|
|
38
|
+
def get_icon(self) -> str: ...
|
|
39
|
+
def get_timeout(self) -> int: ...
|
|
40
|
+
|
|
41
|
+
class Notification:
|
|
42
|
+
def appname(self, appname: str) -> Notification: ...
|
|
43
|
+
def summary(self, summary: str) -> Notification: ...
|
|
44
|
+
def subtitle(self, subtitle: str) -> Notification: ...
|
|
45
|
+
def image_path(self, path: PathLike) -> Notification: ...
|
|
46
|
+
def sound_name(self, name: str) -> Notification: ...
|
|
47
|
+
def body(self, body: str) -> Notification: ...
|
|
48
|
+
def icon(self, icon: PathLike) -> Notification: ...
|
|
49
|
+
def auto_icon(self) -> Notification: ...
|
|
50
|
+
def timeout(self, timeout: int) -> Notification: ...
|
|
51
|
+
def urgency(self, urgency: int) -> Notification: ...
|
|
52
|
+
def id(self, id: int) -> Notification: ... # noqa: A002 # pylint: disable=redefined-builtin
|
|
53
|
+
def finalize(self) -> Notification: ...
|
|
54
|
+
|
|
55
|
+
if sys.platform == "win32":
|
|
56
|
+
|
|
57
|
+
def show(self) -> Notification: ...
|
|
58
|
+
|
|
59
|
+
else:
|
|
60
|
+
|
|
61
|
+
def show(self) -> NotificationHandle: ...
|
|
62
|
+
def get_appname(self) -> str: ...
|
|
63
|
+
def get_summary(self) -> str: ...
|
|
64
|
+
def get_subtitle(self) -> str | None: ...
|
|
65
|
+
def get_body(self) -> str: ...
|
|
66
|
+
def get_icon(self) -> str: ...
|
|
67
|
+
def get_timeout(self) -> int: ...
|
|
68
|
+
|
|
69
|
+
class ServerInformation:
|
|
70
|
+
name: str
|
|
71
|
+
vendor: str
|
|
72
|
+
version: str
|
|
73
|
+
spec_version: str
|
|
74
|
+
|
|
75
|
+
def get_server_information() -> ServerInformation: ...
|
|
76
|
+
def get_capabilities() -> List[str]: ...
|
|
77
|
+
|
|
78
|
+
TIMEOUT_NEVER: int
|
|
79
|
+
TIMEOUT_DEFAULT: int
|
|
80
|
+
URGENCY_LOW: int
|
|
81
|
+
URGENCY_NORMAL: int
|
|
82
|
+
URGENCY_CRITICAL: int
|
|
Binary file
|
notify_rs/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: notify-rs
|
|
3
|
+
Version: 0.6.1
|
|
4
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
5
|
+
Classifier: Operating System :: OS Independent
|
|
6
|
+
Classifier: Programming Language :: Python
|
|
7
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
15
|
+
Classifier: Programming Language :: Rust
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Summary: Wrapper around notify-rust to show desktop notifications.
|
|
18
|
+
Keywords:
|
|
19
|
+
Home-Page: https://github.com/domdfcoding/notify-rs
|
|
20
|
+
Author-email: Dominic Davis-Foster <dominic@davis-foster.co.uk>
|
|
21
|
+
Requires-Python: >=3.8
|
|
22
|
+
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
23
|
+
Project-URL: Homepage, https://github.com/domdfcoding/notify-rs
|
|
24
|
+
Project-URL: Issue Tracker, https://github.com/domdfcoding/notify-rs/issues
|
|
25
|
+
Project-URL: Source Code, https://github.com/domdfcoding/notify-rs
|
|
26
|
+
Project-URL: Documentation, https://notify-rs.readthedocs.io/en/latest
|
|
27
|
+
|
|
28
|
+
==========
|
|
29
|
+
notify-rs
|
|
30
|
+
==========
|
|
31
|
+
|
|
32
|
+
.. start short_desc
|
|
33
|
+
|
|
34
|
+
**Wrapper around notify-rust to show desktop notifications.**
|
|
35
|
+
|
|
36
|
+
.. end short_desc
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
.. start shields
|
|
40
|
+
|
|
41
|
+
.. list-table::
|
|
42
|
+
:stub-columns: 1
|
|
43
|
+
:widths: 10 90
|
|
44
|
+
|
|
45
|
+
* - Docs
|
|
46
|
+
- |docs| |docs_check|
|
|
47
|
+
* - Tests
|
|
48
|
+
- |actions_linux| |actions_windows| |actions_macos|
|
|
49
|
+
* - PyPI
|
|
50
|
+
- |pypi-version| |supported-versions| |supported-implementations| |wheel|
|
|
51
|
+
* - Activity
|
|
52
|
+
- |commits-latest| |commits-since| |maintained| |pypi-downloads|
|
|
53
|
+
* - QA
|
|
54
|
+
- |codefactor| |actions_flake8| |actions_mypy|
|
|
55
|
+
* - Other
|
|
56
|
+
- |license| |language| |requires|
|
|
57
|
+
|
|
58
|
+
.. |docs| image:: https://img.shields.io/readthedocs/notify-rs/latest?logo=read-the-docs
|
|
59
|
+
:target: https://notify-rs.readthedocs.io/en/latest
|
|
60
|
+
:alt: Documentation Build Status
|
|
61
|
+
|
|
62
|
+
.. |docs_check| image:: https://github.com/domdfcoding/notify-rs/workflows/Docs%20Check/badge.svg
|
|
63
|
+
:target: https://github.com/domdfcoding/notify-rs/actions?query=workflow%3A%22Docs+Check%22
|
|
64
|
+
:alt: Docs Check Status
|
|
65
|
+
|
|
66
|
+
.. |actions_linux| image:: https://github.com/domdfcoding/notify-rs/workflows/Linux/badge.svg
|
|
67
|
+
:target: https://github.com/domdfcoding/notify-rs/actions?query=workflow%3A%22Linux%22
|
|
68
|
+
:alt: Linux Test Status
|
|
69
|
+
|
|
70
|
+
.. |actions_windows| image:: https://github.com/domdfcoding/notify-rs/workflows/Windows/badge.svg
|
|
71
|
+
:target: https://github.com/domdfcoding/notify-rs/actions?query=workflow%3A%22Windows%22
|
|
72
|
+
:alt: Windows Test Status
|
|
73
|
+
|
|
74
|
+
.. |actions_macos| image:: https://github.com/domdfcoding/notify-rs/workflows/macOS/badge.svg
|
|
75
|
+
:target: https://github.com/domdfcoding/notify-rs/actions?query=workflow%3A%22macOS%22
|
|
76
|
+
:alt: macOS Test Status
|
|
77
|
+
|
|
78
|
+
.. |actions_flake8| image:: https://github.com/domdfcoding/notify-rs/workflows/Flake8/badge.svg
|
|
79
|
+
:target: https://github.com/domdfcoding/notify-rs/actions?query=workflow%3A%22Flake8%22
|
|
80
|
+
:alt: Flake8 Status
|
|
81
|
+
|
|
82
|
+
.. |actions_mypy| image:: https://github.com/domdfcoding/notify-rs/workflows/mypy/badge.svg
|
|
83
|
+
:target: https://github.com/domdfcoding/notify-rs/actions?query=workflow%3A%22mypy%22
|
|
84
|
+
:alt: mypy status
|
|
85
|
+
|
|
86
|
+
.. |requires| image:: https://dependency-dash.repo-helper.uk/github/domdfcoding/notify-rs/badge.svg
|
|
87
|
+
:target: https://dependency-dash.repo-helper.uk/github/domdfcoding/notify-rs/
|
|
88
|
+
:alt: Requirements Status
|
|
89
|
+
|
|
90
|
+
.. |codefactor| image:: https://img.shields.io/codefactor/grade/github/domdfcoding/notify-rs?logo=codefactor
|
|
91
|
+
:target: https://www.codefactor.io/repository/github/domdfcoding/notify-rs
|
|
92
|
+
:alt: CodeFactor Grade
|
|
93
|
+
|
|
94
|
+
.. |pypi-version| image:: https://img.shields.io/pypi/v/notify-rs
|
|
95
|
+
:target: https://pypi.org/project/notify-rs/
|
|
96
|
+
:alt: PyPI - Package Version
|
|
97
|
+
|
|
98
|
+
.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/notify-rs?logo=python&logoColor=white
|
|
99
|
+
:target: https://pypi.org/project/notify-rs/
|
|
100
|
+
:alt: PyPI - Supported Python Versions
|
|
101
|
+
|
|
102
|
+
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/notify-rs
|
|
103
|
+
:target: https://pypi.org/project/notify-rs/
|
|
104
|
+
:alt: PyPI - Supported Implementations
|
|
105
|
+
|
|
106
|
+
.. |wheel| image:: https://img.shields.io/pypi/wheel/notify-rs
|
|
107
|
+
:target: https://pypi.org/project/notify-rs/
|
|
108
|
+
:alt: PyPI - Wheel
|
|
109
|
+
|
|
110
|
+
.. |license| image:: https://img.shields.io/github/license/domdfcoding/notify-rs
|
|
111
|
+
:target: https://github.com/domdfcoding/notify-rs/blob/master/LICENSE
|
|
112
|
+
:alt: License
|
|
113
|
+
|
|
114
|
+
.. |language| image:: https://img.shields.io/github/languages/top/domdfcoding/notify-rs
|
|
115
|
+
:alt: GitHub top language
|
|
116
|
+
|
|
117
|
+
.. |commits-since| image:: https://img.shields.io/github/commits-since/domdfcoding/notify-rs/v0.6.1
|
|
118
|
+
:target: https://github.com/domdfcoding/notify-rs/pulse
|
|
119
|
+
:alt: GitHub commits since tagged version
|
|
120
|
+
|
|
121
|
+
.. |commits-latest| image:: https://img.shields.io/github/last-commit/domdfcoding/notify-rs
|
|
122
|
+
:target: https://github.com/domdfcoding/notify-rs/commit/master
|
|
123
|
+
:alt: GitHub last commit
|
|
124
|
+
|
|
125
|
+
.. |maintained| image:: https://img.shields.io/maintenance/yes/2026
|
|
126
|
+
:alt: Maintenance
|
|
127
|
+
|
|
128
|
+
.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/notify-rs
|
|
129
|
+
:target: https://pypi.org/project/notify-rs/
|
|
130
|
+
:alt: PyPI - Downloads
|
|
131
|
+
|
|
132
|
+
.. end shields
|
|
133
|
+
|
|
134
|
+
Installation
|
|
135
|
+
--------------
|
|
136
|
+
|
|
137
|
+
.. start installation
|
|
138
|
+
|
|
139
|
+
``notify-rs`` can be installed from PyPI.
|
|
140
|
+
|
|
141
|
+
To install with ``pip``:
|
|
142
|
+
|
|
143
|
+
.. code-block:: bash
|
|
144
|
+
|
|
145
|
+
$ python -m pip install notify-rs
|
|
146
|
+
|
|
147
|
+
.. end installation
|
|
148
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
notify_rs-0.6.1.dist-info/METADATA,sha256=aRg6ngE1zh_R1dWYnjovUoUmaZ4B-Mr-6_jaUTOLEL4,5430
|
|
2
|
+
notify_rs-0.6.1.dist-info/WHEEL,sha256=AjqGQ7kj8KGds2Igp9tejf7yBj7ynSF8I3Y-Ih6GwpM,109
|
|
3
|
+
notify_rs-0.6.1.dist-info/licenses/LICENSE,sha256=14815qJHotTlq9mWhlco5E0rzwtHqk6f-SjDxl9gWRE,1064
|
|
4
|
+
notify_rs.libs/libgcc_s-6d2d9dc8.so.1,sha256=K3sghe0OS1atTYJSB8m0plft2csyIC36q20Ii8UMudc,536145
|
|
5
|
+
notify_rs/__init__.py,sha256=FlIgkJYJBQJqIKFjZrnUKGIm-6vFaDulJyqesr7HvQc,136
|
|
6
|
+
notify_rs/__init__.pyi,sha256=cO6oj0D0gpJGb8K9Jzu2Cbd1393g1Xy82aG7XIiM7C0,2607
|
|
7
|
+
notify_rs/_notify_rs.cpython-314t-x86_64-linux-musl.so,sha256=WEUp-diAbuEcl0B8Elp297RCx-7XOYjROfwjv0g9vR4,3512377
|
|
8
|
+
notify_rs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
notify_rs-0.6.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2025 Dominic Davis-Foster
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
14
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
15
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
16
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
17
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
18
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
19
|
+
OR OTHER DEALINGS IN THE SOFTWARE.
|
|
Binary file
|