{ "info": { "author": "Jerry Wang", "author_email": "yrrejkk@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Simple Notifications\n\nA small package to make sending notifications easy on macOS.\n\n# System Requirement\n\nSupports OS X 10.10 (Yosemite) to macOS 10.14 (Mojave).\n\nSupports python 2.7, 3.5, 3.6, 3.7.\n\n# Why another package?\n\nThe current popular package for sending notifications, `pync`, depends on a ruby program and uses `subprocess` to communicate with that program. Also, to use it, you have to go to install its dependencies separately. \n`simple-notifications`, on the other hand, does not have any non-Python dependency and is super lightweight. \n\n# Usage\n\n```py\nfrom simple_notifications import notify\nnotify(\"Your task is done!\")\nnotify(\"Your task is done!\", sound=True) # This will invoke the default notification sound\nnotify(\"Your task is done!\", subtitle=\"Status: Success\")\nnotify(\"Your task is done!\", informative_text=\"Task took 128ms\")\nnotify(\"Your task is done!\", sound='Glass')\n\n... # Any combination of the above settings\n\n```\n\n# The Hack\n\nApple requires all programs that sends a notification to have a valid bundle identifier. For a simple Python script, this may not be trivial. So a hack is involved: injecting a bundle identifier into the Objective-C runtime. \n\nBy default, the injected bundle identifier is `org.python.PythonLauncher`. If you have never installed a distribution from the python.org installer, you may not have the `Python.app` software. This may result in your notification not showing up. To solve this, you can change bundle identifier to a package which you know for sure is installed. For example,\n\n```py\nfrom simple_notifications import notify, inject_bundle_identifier\ninject_bundle_identifier(\"com.apple.Terminal\")\nnotify(\"Your task is done!\")\n```\n\nNote that this also changes the notification icon. WARNING: You have to do this BEFORE sending out a notification!\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "macOS notification notifications nc", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "simple-notifications", "package_url": "https://pypi.org/project/simple-notifications/", "platform": "", "project_url": "https://pypi.org/project/simple-notifications/", "project_urls": { "GitHub": "https://github.com/pkqxdd/simple-notifications" }, "release_url": "https://pypi.org/project/simple-notifications/0.1.1/", "requires_dist": [ "pyobjc-core", "pyobjc-framework-cocoa" ], "requires_python": ">=2.7,>=3.5,<=3.7", "summary": "A simple package for sending notifications in macOS", "version": "0.1.1" }, "last_serial": 5648535, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f1615ce534d81cb6b4e35321236d7196", "sha256": "7984ebdd1114b58104fccad27d21170932475db87982fe8ee72b3bc7f45b8c9b" }, "downloads": -1, "filename": "simple_notifications-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f1615ce534d81cb6b4e35321236d7196", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7,>=3.5,<=3.7", "size": 348647, "upload_time": "2019-08-08T07:14:48", "url": "https://files.pythonhosted.org/packages/14/bf/93f3293bb55aa39fc4fb84033d21a8464bf6e80d03e94f6fc4a16b77a59e/simple_notifications-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8760cd26aadbcde0fd28e31724e0cf94", "sha256": "f68a99ab86c1f7c159208e09b2485ebaff7efc6e7fd1c0f7738c06994b931770" }, "downloads": -1, "filename": "simple-notifications-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8760cd26aadbcde0fd28e31724e0cf94", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,>=3.5,<=3.7", "size": 2838, "upload_time": "2019-08-08T07:14:51", "url": "https://files.pythonhosted.org/packages/73/12/9007a34cc99eafe5005eadf3e45a31ca92730fce3c8d459c9d6a36ac8688/simple-notifications-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "775f5675b3b266bc151bcc851264dfed", "sha256": "b8b4a02fad8471ccd0685ecfe32b4d127041fe502e2356f63b7d32d80d9532e9" }, "downloads": -1, "filename": "simple_notifications-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "775f5675b3b266bc151bcc851264dfed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7,>=3.5,<=3.7", "size": 348655, "upload_time": "2019-08-08T07:22:59", "url": "https://files.pythonhosted.org/packages/ec/24/f855a49a86839e6141dd56fff8d8656dafb7e556d6e5422b7dbd554cbe71/simple_notifications-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "164d132801925420fc3986d9bf8b9891", "sha256": "2814f624e0afee2ba32d14b655cc26d0c84a30fcebbae2b3c1ef3e2c5fe35677" }, "downloads": -1, "filename": "simple-notifications-0.1.1.tar.gz", "has_sig": false, "md5_digest": "164d132801925420fc3986d9bf8b9891", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,>=3.5,<=3.7", "size": 2844, "upload_time": "2019-08-08T07:23:01", "url": "https://files.pythonhosted.org/packages/0e/e2/ac074e044cdd0d11f7939bb0c9fcfc4691109aed84bde36afaf28e38a77a/simple-notifications-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "775f5675b3b266bc151bcc851264dfed", "sha256": "b8b4a02fad8471ccd0685ecfe32b4d127041fe502e2356f63b7d32d80d9532e9" }, "downloads": -1, "filename": "simple_notifications-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "775f5675b3b266bc151bcc851264dfed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7,>=3.5,<=3.7", "size": 348655, "upload_time": "2019-08-08T07:22:59", "url": "https://files.pythonhosted.org/packages/ec/24/f855a49a86839e6141dd56fff8d8656dafb7e556d6e5422b7dbd554cbe71/simple_notifications-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "164d132801925420fc3986d9bf8b9891", "sha256": "2814f624e0afee2ba32d14b655cc26d0c84a30fcebbae2b3c1ef3e2c5fe35677" }, "downloads": -1, "filename": "simple-notifications-0.1.1.tar.gz", "has_sig": false, "md5_digest": "164d132801925420fc3986d9bf8b9891", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,>=3.5,<=3.7", "size": 2844, "upload_time": "2019-08-08T07:23:01", "url": "https://files.pythonhosted.org/packages/0e/e2/ac074e044cdd0d11f7939bb0c9fcfc4691109aed84bde36afaf28e38a77a/simple-notifications-0.1.1.tar.gz" } ] }