https://github.com/malja/zroya
[Partialy working][Stale] Python extension for creating native Windows notifications.
https://github.com/malja/zroya
notification-center notifications python3 uwp-notification windows
Last synced: 8 months ago
JSON representation
[Partialy working][Stale] Python extension for creating native Windows notifications.
- Host: GitHub
- URL: https://github.com/malja/zroya
- Owner: malja
- License: mit
- Created: 2018-02-17T01:00:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-06T20:15:33.000Z (about 8 years ago)
- Last Synced: 2024-04-24T16:24:31.441Z (about 2 years ago)
- Topics: notification-center, notifications, python3, uwp-notification, windows
- Language: C++
- Homepage: https://malja.github.io/zroya
- Size: 10.1 MB
- Stars: 160
- Watchers: 4
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: changelog
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://opensource.org/licenses/MIT)
[](https://pypi.python.org/pypi/zroya/)
[](https://pypi.python.org/pypi/zroya/)
[](https://gitHub.com/malja/zroya/graphs/commit-activity)
# zroya2
Zroya is a Python package for creating native Windows notifications.
In contrast to first version of zroya, zroya2 is a Python extension built around C++
[WinToast](https://github.com/mohabouje/WinToast) library.
**Note**: Zroya2 is in beta testing. I would be grateful for any bug reports.
## Prerequisites
There are no requirements at the moment.
## Installation
Zroya2 is now available from pypi:
```
python -m pip install zroya
```
## Example
```python
import zroya
# Initialize zroya module. Make sure to call this function.
# All parameters are required
zroya.init("YourAppName", "CompanyName", "ProductName", "SubProduct", "Version")
# Create notification template. TYPE_TEXT1 means one bold line withou image.
template = zroya.Template( zroya.TemplateType.Text1 )
# Set first line
template.setFirstLine("My First line")
# Save notification id for later use
notificationID = zroya.show(template)
# .. do something, maybe sleep?
# Hide notification
zroya.hide(notificationID)
```
## Documentation
You may find some limited documentation on [Zroya Page](https://malja.github.io/zroya)