Skip to main content

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)
  • 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

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

notipydesktop-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NotipyDesktop-1.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file notipydesktop-1.0.0.tar.gz.

File metadata

  • Download URL: notipydesktop-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.0 CPython/3.8.10

File hashes

Hashes for notipydesktop-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8fc090d21c470498b007147b920914eb29c47d700e3bc4161fd3a7d6743ef96b
MD5 fc5c14f202bd8de1a0ac6eb7fddfcbb6
BLAKE2b-256 99677a3714d0694106d5d1dfdfd67b9023be67eb86d8a8ab0456bf443f481cde

See more details on using hashes here.

File details

Details for the file NotipyDesktop-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: NotipyDesktop-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.0 CPython/3.8.10

File hashes

Hashes for NotipyDesktop-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68e81130ec59809cec8c9afbca74439c94d0020baba0318b6eef537e9c92dbd0
MD5 3b7dd48fcd1f6dc251fb8c2ccd81d80e
BLAKE2b-256 3f7363ca94e893952d17b1d534949f73f1c9c838cff4e2c125e2eedef425df48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page