Skip to main content

📬 update-notipy

Send a notification when there is an update available for your package! 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>,
    defer=<True|False>).notify()

Arguments

  • pkg_name: str: name of the package as registered on PyPI

  • pkg_version: str: version of the installed package, to be compared with the latest one

  • callback: Callable: function to be called instead of printing the standard message

  • message: str: custom message to be printed

  • defer: bool: set to True if you want to notify the user when the app closes

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!

Metadata

Release files for update-notipy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for update-notipy 0.1.2
File Size Uploaded Provenance Actions
update-notipy-0.1.2.tar.gz 2.5 kB Without provenance Details for update-notipy-0.1.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for update-notipy 0.1.2
File Interpreter ABI Platform Actions
update_notipy-0.1.2-py3.6.egg Legacy Egg format - - Details for update_notipy-0.1.2-py3.6.egg
update_notipy-0.1.2-py3-none-any.whl Python 3 none any Details for update_notipy-0.1.2-py3-none-any.whl
update_notipy-0.1.2-py2-none-any.whl Python 2 none any Details for update_notipy-0.1.2-py2-none-any.whl

Total release size: 13.4 kB

Release files / update-notipy-0.1.2.tar.gz

Download URL update-notipy-0.1.2.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6d03261abb2d6f0dc48d019908b91ad2559801159f1acc985ab276835a1fa246
BLAKE2b-256 checksum
How to use checksums
ea9e0d15d29df4fdacd5e4ce70ae12e7f06c989cac7eae3a0b66451a058d0b96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / update_notipy-0.1.2-py3.6.egg

Download URL update_notipy-0.1.2-py3.6.egg
Size 2.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
130cc0cf5e5f48257b728651f2dbeeecd2f43841af0320e975ff7598d04cde27
BLAKE2b-256 checksum
How to use checksums
b2ff7eb86d52e8369a70258f639e407b52ff29f696374fe2ae54665e5b039ccc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / update_notipy-0.1.2-py3-none-any.whl

Download URL update_notipy-0.1.2-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a8353bc31b8397c32b81146d7baee7b6373a68c8ef5decc68fa77d9b3c575c2
BLAKE2b-256 checksum
How to use checksums
fc259a00746385737343f93e1350945c9d4e50cc52f9a266bfe0ef8966edd17f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / update_notipy-0.1.2-py2-none-any.whl

Download URL update_notipy-0.1.2-py2-none-any.whl
Size 4.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
83ce193e800fbb644641e915b36dd35cd7d7fda7484ea2ce71648d20a32df62c
BLAKE2b-256 checksum
How to use checksums
43f8b846b2d51fdee80804f6cf1b91bcd43f3faa226c0daaac760150e2d84f98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for update-notipy 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page