Skip to main content

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)
  • libnotify installed 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:

  1. Clone the repository:

    git clone https://github.com/Michdo93/NotipyDesktop.git
    cd NotipyDesktop
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. 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)

Source distribution for NotipyDesktop 10.0.0
File Size Uploaded
notipydesktop-10.0.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for NotipyDesktop 10.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

10.0.0 This release

2 release files

5.0.0

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page