Update notifications for your python app
Project description
Update notifications for your python app! Py-port of update-notifier.
Install
pipenv install update_notipy
or
pip install update_notipy
Usage
from update_notipy import update_notify
update_notify(
<pkg_name>,
<pkg_version>,
callback=<callback>,
message=<message>).notify()
Examples
from update_notipy import update_notify
__version__ = "0.1.0"
update_notify('pkg-info', __version__).notify()
# ┌───────────────────────────────────────────┐
# │ │
# │ Update available 0.1.0 → 0.1.2 │
# │ Run pip install -U pkg-info to update │
# │ │
# └───────────────────────────────────────────┘
def foo():
four = 2 + 2
print(four)
update_notify('pkg-info', __version__, callback=foo).notify()
# 4
update_notify('pkg-info', __version__, message="Hello, world!").notify()
# Hello, world!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
update-notipy-0.1.0.tar.gz
(2.0 kB
view details)
Built Distributions
File details
Details for the file update-notipy-0.1.0.tar.gz
.
File metadata
- Download URL: update-notipy-0.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4ded5a166f8b8f3558b5248cef6ee86761e9a2a390d3c927defd32a6cd333295
|
|
MD5 |
5d495388d398ab7fa51baf892566a89d
|
|
BLAKE2b-256 |
dbc299ec93733e0e2551fd963927da1c8e0c5aa6f5812863cf170a2a8c8bd2a8
|
File details
Details for the file update_notipy-0.1.0-py3.6.egg
.
File metadata
- Download URL: update_notipy-0.1.0-py3.6.egg
- Upload date:
- Size: 2.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
dba2b82f32457c7c99b89f72296a2a3d39a3bcd0b7ebd2ab2c86fe844154edae
|
|
MD5 |
46301468c717b8620ae41e2d2fff185a
|
|
BLAKE2b-256 |
d3f5a20fa79626ae4330e99184fe03b6015d9b6c87a249cf084f4617d5dce531
|
File details
Details for the file update_notipy-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: update_notipy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2dcdd21f3639405937f2d607630c285338b4332c1739c0c971314d0842e8aa77
|
|
MD5 |
19bab58d3c7f8f65115a33f2ebad8423
|
|
BLAKE2b-256 |
7704c2de60f01ed7bfd8d077e76bf0c10f9874fb41c3bbf6c122b8449b22a156
|