All Projects → SeTeM → Pync

SeTeM / Pync

Licence: other
Python wrapper for Mac OS 10.8 Notification Center

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pync

Apns4erl
Apple Push Notification Server for Erlang
Stars: ✭ 352 (+7.65%)
Mutual labels:  apple, notifications
Net Core Push Notifications
Lightweight .NET Core Push Notifications for Android and iOS
Stars: ✭ 105 (-67.89%)
Mutual labels:  apple, notifications
Apnotic
A Ruby APNs HTTP/2 gem able to provide instant feedback.
Stars: ✭ 360 (+10.09%)
Mutual labels:  apple, notifications
Apns Http2
A Java library for sending notifications via APNS using Apple's HTTP/2 API.
Stars: ✭ 194 (-40.67%)
Mutual labels:  apple, notifications
Connectivity
🌐 Makes Internet connectivity detection more robust by detecting Wi-Fi networks without Internet access.
Stars: ✭ 1,476 (+351.38%)
Mutual labels:  apple, notifications
Apns2
⚡ HTTP/2 Apple Push Notification Service (APNs) push provider for Go — Send push notifications to iOS, tvOS, Safari and OSX apps, using the APNs HTTP/2 protocol.
Stars: ✭ 2,569 (+685.63%)
Mutual labels:  apple, notifications
Glnotificationbar
GLNotificationBar is a ios10 style notification bar, can be used to handle push notification in active state.
Stars: ✭ 306 (-6.42%)
Mutual labels:  notifications
Compositional Layouts Kit
📏 A set of advanced compositional layouts for UICollectionView with examples [Swift 5.3, iOS 13].
Stars: ✭ 317 (-3.06%)
Mutual labels:  apple
Ismessages
This is simple extension for presenting system-wide notifications from top/bottom of device screen.
Stars: ✭ 299 (-8.56%)
Mutual labels:  notifications
Attributedstring
基于Swift插值方式优雅的构建富文本, 支持点击长按事件, 支持不同类型过滤, 支持自定义视图等.
Stars: ✭ 294 (-10.09%)
Mutual labels:  apple
Apprise
Apprise - Push Notifications that work with just about every platform!
Stars: ✭ 4,307 (+1217.13%)
Mutual labels:  notifications
Open Source Xamarin Apps
📱 Collaborative List of Open Source Xamarin Apps
Stars: ✭ 318 (-2.75%)
Mutual labels:  apple
Monal
Free XMPP client for iOS and macOS
Stars: ✭ 312 (-4.59%)
Mutual labels:  apple
Entwine
Testing tools and utilities for Apple's Combine framework.
Stars: ✭ 306 (-6.42%)
Mutual labels:  apple
Gh Action Pypi Publish
GitHub Action, for publishing distribution files to PyPI
Stars: ✭ 317 (-3.06%)
Mutual labels:  pypi
Gitify
GitHub notifications on your menu bar. Available on macOS, Windows & Linux.
Stars: ✭ 3,543 (+983.49%)
Mutual labels:  notifications
Pyatv
A python client library for the Apple TV
Stars: ✭ 322 (-1.53%)
Mutual labels:  pypi
Arkit
ARKit Base Project. Place virtual objects based on WWDC example project
Stars: ✭ 297 (-9.17%)
Mutual labels:  apple
Splashbuddy
Onboarding splash screen for Jamf Pro. Improves DEP provisioning for macOS.
Stars: ✭ 309 (-5.5%)
Mutual labels:  apple
Wpf.notifications
WPF notifications UI controls (as seen in VS Code)
Stars: ✭ 318 (-2.75%)
Mutual labels:  notifications

pync

PyPI - License PyPI GitHub issues GitHub pull requests GitHub forks GitHub stars

A simple Python wrapper around the terminal-notifier 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.

Screenshot

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.

Examples:

Using the notify function

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.notify('Hello World', appIcon='https://assets-cdn.github.com/images/modules/logos_page/Octocat.png')

pync.remove_notifications(os.getpid())

pync.list_notifications(os.getpid())

Using the notifier object

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.notify('Hello World', appIcon='https://assets-cdn.github.com/images/modules/logos_page/Octocat.png')

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 for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].