Skip to main content

Python library for creating native Windows notifications.

Project description

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PyPI version](https://badge.fury.io/py/zroya.svg)](https://pypi.python.org/pypi/zroya/)
[![PyPI status](https://img.shields.io/pypi/status/zroya.svg)](https://pypi.python.org/pypi/zroya/)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](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)


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

zroya-0.2.4.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

zroya-0.2.4-cp36-cp36m-win32.whl (47.7 kB view details)

Uploaded CPython 3.6m Windows x86

File details

Details for the file zroya-0.2.4.tar.gz.

File metadata

  • Download URL: zroya-0.2.4.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zroya-0.2.4.tar.gz
Algorithm Hash digest
SHA256 e8959ec51987598b4adc1c9db5722aa60a8d663971e5ab371be74a9bdb9dea5c
MD5 761322d8b6c2c2eb80974f773db5effc
BLAKE2b-256 c0a91e3a6e002580e5830c8e616fe4b67ab679ea834db1fa0698e0c8c028e6e0

See more details on using hashes here.

File details

Details for the file zroya-0.2.4-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for zroya-0.2.4-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 f972adebfda76b5558576996974939277e38f7b7966933782a9798e0d8b2ad29
MD5 98ebd649a68d3fb3efdb510d22fc909e
BLAKE2b-256 63113633c1a18ba20287a300b6422aff6e7a7d43d5aef694304a2da519ae2ae0

See more details on using hashes here.

Supported by

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