NotipyDesktop
NotipyDesktop is a simple Python library for sending desktop notifications using libnotify.
Features
- Send desktop notifications with a title and message.
- Easy-to-use API with just one function.
- Uses PyGObject to interact with GNOME notifications.
Installation
Install the library via pip:
pip install NotipyDesktop
Usage
Here's an example of how to use notifier:
from NotipyDesktop import notify
# Send a notification
notify("MyApp", "Test Notification", "This is a test message.")
CLI Usage
local path
You can also use the library as a command-line tool. Run the following command to send a notification:
python3 NotipyDesktop.py MyApp "Test Notification" "This is a test message."
sytem wide
You can make the program system wide executable with:
chmod +x /path/to/NotipyDesktop/NotipyDesktop.py
After that you have to add the path to $PATH:
export PATH=$PATH:/path/to/NotipyDesktop
Then you can run:
NotipyDesktop MyApp "Test Notification" "This is a test message."
Requirements
- Python 3.6 or higher
- GNOME Desktop Environment (or a compatible Linux desktop environment)
libnotifyinstalled on your system
Install the required Python dependencies:
pip install PyGObject
For most Linux distributions, you can install libnotify with your package manager. Example for Ubuntu/Debian:
sudo apt install libnotify-bin
Development
To set up the project locally for development:
-
Clone the repository:
git clone https://github.com/Michdo93/NotipyDesktop.git cd NotipyDesktop
-
Install dependencies:
pip install -r requirements.txt
-
Run the tests or use the CLI to validate functionality.
Contributing
Contributions are welcome! If you find a bug or have a feature request, feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgments
Metadata
Release files for NotipyDesktop 10.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| notipydesktop-10.0.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| NotipyDesktop-10.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / notipydesktop-10.0.0.tar.gz
| Download URL | notipydesktop-10.0.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddd55a4a120b0174e33ab7d3b5a13e360ab1cadaf9748251486ac3967e217410
|
|
BLAKE2b-256 checksum How to use checksums |
e54a5bb7f02f635523441d71f1509880d63582a36d984c51babf5c3546935f43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.0 CPython/3.8.10
|
Release files / NotipyDesktop-10.0.0-py3-none-any.whl
| Download URL | NotipyDesktop-10.0.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7107c26f6c4a204a134b263a37ade7c6c654318b980591dfa56b7482078937cf
|
|
BLAKE2b-256 checksum How to use checksums |
ab25b37a95d581f1f2f91a01ca853d641d75ddf192b57299e98d270fd2346e8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.0 CPython/3.8.10
|