A simple Python notification library using libnotify.
Project description
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
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."
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file notipydesktop-2.0.0.tar.gz.
File metadata
- Download URL: notipydesktop-2.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e04157b81ea6d7b49a2e3b2e06d066b798f2987c910ea13d83006b8b3ee37adb
|
|
| MD5 |
60a48fe04e2eb500c8354924ea4b61d7
|
|
| BLAKE2b-256 |
ef3039111a85fc427c3f77f40d14af2a62fc4b5d4eab0498aed82d0161b8c9a1
|
File details
Details for the file NotipyDesktop-2.0.0-py3-none-any.whl.
File metadata
- Download URL: NotipyDesktop-2.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aac41e63bf924dddbf6ee390c226c0ad63eb397fbec45fa1948d7200a48e498
|
|
| MD5 |
23c78e4a1c0a0bd5877e28469da51bd9
|
|
| BLAKE2b-256 |
ba49901cb43485e685ba375801ca420c12bf343946bf93ee2fa866e8304c45c7
|