Skip to content

This project is an attempt to build a cross-platform notification library in python.

License

Notifications You must be signed in to change notification settings

salesforce/piXnotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

piXnotify

This project is an attempt to build a cross-platform notification library in python.

It heavily relies on platform-dependant notification libraries, namely

You could also use plyer project which aims to provide a whole set of cross platform features such as notifications, camera manipulation ...

Setup

Run

pip install .

or

python setup.py sdist
python setup.py install

This will install platform-specific python packages, specified in python.py .

Usage

Typical package usage will be:

from piXnotify import notifier

notifier.set_title("Title").set_message("message").notify()

Available options are:

  • set_title
  • set_message
  • set_app_icon (WIP)
  • set_activate (WIP)
  • set_url (WIP)
  • set_group (WIP)
  • set_sound (WIP)
  • set_execute (WIP)

As you can see, a lot of these are still WIP. This is mainly because of OS specific behaviours that have not been extensively tested yet.

System Specific Usages

MacOs

On Mac systems, if no notifications get displayed:

  • Make sure you are not in "focus mode"
  • Make sure terminal-notifier has notifications enabled (System Settings > Notifications > terminal-notifier > Allow notifications)

Development and contributions

Contributions are encouraged, please use Issues to communicate on improvements you may be working on.

In order to accept your pull request, we need you to submit a CLA. You only need to do this once, so if you've done this for another Salesforce open source project, you're good to go. If you are submitting a pull request for the first time, just let us know that you have completed the CLA and we can cross-check with your GitHub username.

Complete your CLA here.

Code must be formatted with black. You can reformat all code before submission with this command: black . .

Code of conduct

Salesforce open-source projects are committed to providing a friendly, safe, and welcoming environment for all.

You may read more in the Code of Conduct.

The goal of this code of conduct is to specify a baseline standard of behavior so that people with different social values and communication styles can work together effectively, productively, and respectfully in our open source community. It also establishes a mechanism for reporting issues and resolving conflicts.

All questions and reports of abusive, harassing, or otherwise unacceptable behavior in a Salesforce open-source project may be reported by contacting the Salesforce Open Source Conduct Committee at [email protected].

About

This project is an attempt to build a cross-platform notification library in python.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages