Python Wrapper for Mac OS 10.10 Notification Center
Project description
## ⚠️ Disclaimer
I haven't been supporting the library for a long time, and if someone wants to take responsibility over it, contact me, please.
pync
====
A simple Python wrapper around the [`terminal-notifier`][HOMEPAGE] command-line tool (version 2.0.0), which allows you to send User Notifications to the Notification Center on Mac OS X 10.10, or higher.

Installation
------------
```
pip install pync
```
or
```
pip install git+https://github.com/SeTeM/pync.git
```
or
```
git clone git://github.com/SeTeM/pync.git
cd pync
python setup.py install
```
Usage
-----
For full information on all the options, see the tool’s [README][README].
### Examples:
Using the notify function
```python
import pync
pync.notify('Hello World')
pync.notify('Hello World', title='Python')
pync.notify('Hello World', group=os.getpid())
pync.notify('Hello World', activate='com.apple.Safari')
pync.notify('Hello World', open='http://github.com/')
pync.notify('Hello World', execute='say "OMG"')
pync.remove_notifications(os.getpid())
pync.list_notifications(os.getpid())
```
Using the notifier object
```python
from pync import Notifier
Notifier.notify('Hello World')
Notifier.notify('Hello World', title='Python')
Notifier.notify('Hello World', group=os.getpid())
Notifier.notify('Hello World', activate='com.apple.Safari')
Notifier.notify('Hello World', open='http://github.com/')
Notifier.notify('Hello World', execute='say "OMG"')
Notifier.remove(os.getpid())
Notifier.list(os.getpid())
```
License
-------
All the works are available under the MIT license. **Except** for ‘Terminal.icns’, which is a copy of Apple’s Terminal.app icon and as such is copyright of Apple.
See [LICENSE][LICENSE] for details.
[HOMEPAGE]: https://github.com/alloy/terminal-notifier
[README]: https://github.com/alloy/terminal-notifier/blob/master/README.markdown
[LICENSE]: https://github.com/setem/pync/blob/master/LICENSE
I haven't been supporting the library for a long time, and if someone wants to take responsibility over it, contact me, please.
pync
====
A simple Python wrapper around the [`terminal-notifier`][HOMEPAGE] command-line tool (version 2.0.0), which allows you to send User Notifications to the Notification Center on Mac OS X 10.10, or higher.

Installation
------------
```
pip install pync
```
or
```
pip install git+https://github.com/SeTeM/pync.git
```
or
```
git clone git://github.com/SeTeM/pync.git
cd pync
python setup.py install
```
Usage
-----
For full information on all the options, see the tool’s [README][README].
### Examples:
Using the notify function
```python
import pync
pync.notify('Hello World')
pync.notify('Hello World', title='Python')
pync.notify('Hello World', group=os.getpid())
pync.notify('Hello World', activate='com.apple.Safari')
pync.notify('Hello World', open='http://github.com/')
pync.notify('Hello World', execute='say "OMG"')
pync.remove_notifications(os.getpid())
pync.list_notifications(os.getpid())
```
Using the notifier object
```python
from pync import Notifier
Notifier.notify('Hello World')
Notifier.notify('Hello World', title='Python')
Notifier.notify('Hello World', group=os.getpid())
Notifier.notify('Hello World', activate='com.apple.Safari')
Notifier.notify('Hello World', open='http://github.com/')
Notifier.notify('Hello World', execute='say "OMG"')
Notifier.remove(os.getpid())
Notifier.list(os.getpid())
```
License
-------
All the works are available under the MIT license. **Except** for ‘Terminal.icns’, which is a copy of Apple’s Terminal.app icon and as such is copyright of Apple.
See [LICENSE][LICENSE] for details.
[HOMEPAGE]: https://github.com/alloy/terminal-notifier
[README]: https://github.com/alloy/terminal-notifier/blob/master/README.markdown
[LICENSE]: https://github.com/setem/pync/blob/master/LICENSE
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
pync-2.0.0.tar.gz
(373.5 kB
view details)
File details
Details for the file pync-2.0.0.tar.gz
.
File metadata
- Download URL: pync-2.0.0.tar.gz
- Upload date:
- Size: 373.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a65500b70eb2df961850f216f88dc8a7bd67b590efc30ab1e971679e56864840 |
|
MD5 | fe344bac557ad04524da7de2f4edd6d9 |
|
BLAKE2b-256 | 97eecec3a14fb65d32b74595618cb6dd8626066f0949520f666e5a58940469a6 |