{ "info": { "author": "Alessandro Cifani", "author_email": "alessandro.cifani@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "\ud83d\udcec update-notipy\n================\n\nSend a notification when there is an update available for your package!\nPy-port of `update-notifier `_.\n\n\nInstall\n-------\n\n``pipenv install update_notipy``\n\nor\n\n``pip install update_notipy``\n\nUsage\n-----\n\n.. code-block:: python\n\n from update_notipy import update_notify\n\n update_notify(\n ,\n ,\n callback=,\n message=,\n defer=).notify()\n\nArguments\n~~~~~~~~~\n\n- ``pkg_name: str``: name of the package as registered on PyPI\n- ``pkg_version: str``: version of the installed package, to be compared with the latest one\n- ``callback: Callable``: function to be called instead of printing the standard message\n- ``message: str``: custom message to be printed\n- ``defer: bool``: set to ``True`` if you want to notify the user when the app closes\n\nExamples\n--------\n\n.. code-block:: python\n\n from update_notipy import update_notify\n\n __version__ = \"0.1.0\"\n\n update_notify('pkg-info', __version__).notify()\n\n # \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n # \u2502 \u2502\n # \u2502 Update available 0.1.0 \u2192 0.1.2 \u2502\n # \u2502 Run pip install -U pkg-info to update \u2502\n # \u2502 \u2502\n # \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n\n def foo():\n four = 2 + 2\n print(four)\n\n update_notify('pkg-info', __version__, callback=foo).notify()\n\n # 4\n\n update_notify('pkg-info', __version__, message=\"Hello, world!\").notify()\n\n # Hello, world!\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/acifani/update-notipy", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "update-notipy", "package_url": "https://pypi.org/project/update-notipy/", "platform": "", "project_url": "https://pypi.org/project/update-notipy/", "project_urls": { "Homepage": "https://github.com/acifani/update-notipy" }, "release_url": "https://pypi.org/project/update-notipy/0.1.2/", "requires_dist": [ "pkg-info", "boxing (>=0.1.4)", "semver", "colored" ], "requires_python": "", "summary": "Update notifications for your python app", "version": "0.1.2" }, "last_serial": 3765361, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "46301468c717b8620ae41e2d2fff185a", "sha256": "dba2b82f32457c7c99b89f72296a2a3d39a3bcd0b7ebd2ab2c86fe844154edae" }, "downloads": -1, "filename": "update_notipy-0.1.0-py3.6.egg", "has_sig": false, "md5_digest": "46301468c717b8620ae41e2d2fff185a", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 2145, "upload_time": "2018-03-31T11:35:47", "url": "https://files.pythonhosted.org/packages/d3/f5/a20fa79626ae4330e99184fe03b6015d9b6c87a249cf084f4617d5dce531/update_notipy-0.1.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "19bab58d3c7f8f65115a33f2ebad8423", "sha256": "2dcdd21f3639405937f2d607630c285338b4332c1739c0c971314d0842e8aa77" }, "downloads": -1, "filename": "update_notipy-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "19bab58d3c7f8f65115a33f2ebad8423", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3566, "upload_time": "2018-03-31T11:35:45", "url": "https://files.pythonhosted.org/packages/77/04/c2de60f01ed7bfd8d077e76bf0c10f9874fb41c3bbf6c122b8449b22a156/update_notipy-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5d495388d398ab7fa51baf892566a89d", "sha256": "4ded5a166f8b8f3558b5248cef6ee86761e9a2a390d3c927defd32a6cd333295" }, "downloads": -1, "filename": "update-notipy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5d495388d398ab7fa51baf892566a89d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2008, "upload_time": "2018-03-31T11:35:46", "url": "https://files.pythonhosted.org/packages/db/c2/99ec93733e0e2551fd963927da1c8e0c5aa6f5812863cf170a2a8c8bd2a8/update-notipy-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "99a36cd94fd5db84212c65dd5f2e41a1", "sha256": "6825a1045b242b990a76bc0c45b184f403df28e2bb07cb95d4f90e7970bf530d" }, "downloads": -1, "filename": "update_notipy-0.1.1-py3.6.egg", "has_sig": false, "md5_digest": "99a36cd94fd5db84212c65dd5f2e41a1", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 2446, "upload_time": "2018-03-31T15:17:03", "url": "https://files.pythonhosted.org/packages/cd/e0/9bcb260740974ee7263573e16458a0be741a38cd95a23b69eb8c1925770d/update_notipy-0.1.1-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "a5eb41b0b25673237898c99a0e61e155", "sha256": "84a2ddf75bbb441066676872a9d936a2be43f06c2e7294d96ce0737ed985ce0c" }, "downloads": -1, "filename": "update_notipy-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a5eb41b0b25673237898c99a0e61e155", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4089, "upload_time": "2018-03-31T15:17:01", "url": "https://files.pythonhosted.org/packages/eb/6d/d1162dd7559433f27591cf555c0d85965144f665afab2474400abd217a8d/update_notipy-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "485e1a3d7c652b7c2d483b2a0c58c0d9", "sha256": "5f55937ae46a32d5eb0c2d2f60ad00b82f11c4fdbc520552b43a719fc9093f42" }, "downloads": -1, "filename": "update-notipy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "485e1a3d7c652b7c2d483b2a0c58c0d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2338, "upload_time": "2018-03-31T15:17:02", "url": "https://files.pythonhosted.org/packages/fc/52/682a6ac9571b839183bedc3069243aef81b8ffd3e7ff2b0b77a3c861d0f1/update-notipy-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "29705503b4bd9d688a73229dfd93a252", "sha256": "83ce193e800fbb644641e915b36dd35cd7d7fda7484ea2ce71648d20a32df62c" }, "downloads": -1, "filename": "update_notipy-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "29705503b4bd9d688a73229dfd93a252", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4236, "upload_time": "2018-04-14T23:29:21", "url": "https://files.pythonhosted.org/packages/43/f8/b846b2d51fdee80804f6cf1b91bcd43f3faa226c0daaac760150e2d84f98/update_notipy-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "53c44f18b548717c4dcd55b5a4ad7308", "sha256": "130cc0cf5e5f48257b728651f2dbeeecd2f43841af0320e975ff7598d04cde27" }, "downloads": -1, "filename": "update_notipy-0.1.2-py3.6.egg", "has_sig": false, "md5_digest": "53c44f18b548717c4dcd55b5a4ad7308", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 2541, "upload_time": "2018-04-14T23:30:18", "url": "https://files.pythonhosted.org/packages/b2/ff/7eb86d52e8369a70258f639e407b52ff29f696374fe2ae54665e5b039ccc/update_notipy-0.1.2-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "3e0fb5aa84327239e8b7a34872aa1569", "sha256": "5a8353bc31b8397c32b81146d7baee7b6373a68c8ef5decc68fa77d9b3c575c2" }, "downloads": -1, "filename": "update_notipy-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "3e0fb5aa84327239e8b7a34872aa1569", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4197, "upload_time": "2018-04-14T23:30:16", "url": "https://files.pythonhosted.org/packages/fc/25/9a00746385737343f93e1350945c9d4e50cc52f9a266bfe0ef8966edd17f/update_notipy-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d256d825c80fdd4c7e116f88657f264d", "sha256": "6d03261abb2d6f0dc48d019908b91ad2559801159f1acc985ab276835a1fa246" }, "downloads": -1, "filename": "update-notipy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "d256d825c80fdd4c7e116f88657f264d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2462, "upload_time": "2018-04-14T23:30:17", "url": "https://files.pythonhosted.org/packages/ea/9e/0d15d29df4fdacd5e4ce70ae12e7f06c989cac7eae3a0b66451a058d0b96/update-notipy-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "29705503b4bd9d688a73229dfd93a252", "sha256": "83ce193e800fbb644641e915b36dd35cd7d7fda7484ea2ce71648d20a32df62c" }, "downloads": -1, "filename": "update_notipy-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "29705503b4bd9d688a73229dfd93a252", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4236, "upload_time": "2018-04-14T23:29:21", "url": "https://files.pythonhosted.org/packages/43/f8/b846b2d51fdee80804f6cf1b91bcd43f3faa226c0daaac760150e2d84f98/update_notipy-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "53c44f18b548717c4dcd55b5a4ad7308", "sha256": "130cc0cf5e5f48257b728651f2dbeeecd2f43841af0320e975ff7598d04cde27" }, "downloads": -1, "filename": "update_notipy-0.1.2-py3.6.egg", "has_sig": false, "md5_digest": "53c44f18b548717c4dcd55b5a4ad7308", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 2541, "upload_time": "2018-04-14T23:30:18", "url": "https://files.pythonhosted.org/packages/b2/ff/7eb86d52e8369a70258f639e407b52ff29f696374fe2ae54665e5b039ccc/update_notipy-0.1.2-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "3e0fb5aa84327239e8b7a34872aa1569", "sha256": "5a8353bc31b8397c32b81146d7baee7b6373a68c8ef5decc68fa77d9b3c575c2" }, "downloads": -1, "filename": "update_notipy-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "3e0fb5aa84327239e8b7a34872aa1569", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4197, "upload_time": "2018-04-14T23:30:16", "url": "https://files.pythonhosted.org/packages/fc/25/9a00746385737343f93e1350945c9d4e50cc52f9a266bfe0ef8966edd17f/update_notipy-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d256d825c80fdd4c7e116f88657f264d", "sha256": "6d03261abb2d6f0dc48d019908b91ad2559801159f1acc985ab276835a1fa246" }, "downloads": -1, "filename": "update-notipy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "d256d825c80fdd4c7e116f88657f264d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2462, "upload_time": "2018-04-14T23:30:17", "url": "https://files.pythonhosted.org/packages/ea/9e/0d15d29df4fdacd5e4ce70ae12e7f06c989cac7eae3a0b66451a058d0b96/update-notipy-0.1.2.tar.gz" } ] }