{"id":17709772,"url":"https://github.com/jorricks/macos-notifications","last_synced_at":"2025-07-31T09:10:31.630Z","repository":{"id":48827104,"uuid":"517043497","full_name":"Jorricks/macos-notifications","owner":"Jorricks","description":"Create interactable notifications in the Notification Centre on any Mac using Python","archived":false,"fork":false,"pushed_at":"2024-10-12T08:48:14.000Z","size":1121,"stargazers_count":89,"open_issues_count":6,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-25T05:11:04.898Z","etag":null,"topics":["apple","mac","macos","notificationcenter","notifications"],"latest_commit_sha":null,"homepage":"https://jorricks.github.io/macos-notifications/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jorricks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-23T11:50:38.000Z","updated_at":"2025-07-13T10:50:30.000Z","dependencies_parsed_at":"2024-10-25T10:41:40.518Z","dependency_job_id":null,"html_url":"https://github.com/Jorricks/macos-notifications","commit_stats":{"total_commits":30,"total_committers":2,"mean_commits":15.0,"dds":0.09999999999999998,"last_synced_commit":"ab2433fec9cc67070d15dbfb66c025db261a7452"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/Jorricks/macos-notifications","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorricks%2Fmacos-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorricks%2Fmacos-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorricks%2Fmacos-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorricks%2Fmacos-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jorricks","download_url":"https://codeload.github.com/Jorricks/macos-notifications/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorricks%2Fmacos-notifications/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268016959,"owners_count":24181657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","mac","macos","notificationcenter","notifications"],"created_at":"2024-10-25T05:05:25.044Z","updated_at":"2025-07-31T09:10:31.590Z","avatar_url":"https://github.com/Jorricks.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Jorricks/macos-notifications\"\u003e\u003cimg src=\"https://github.com/Jorricks/macos-notifications/raw/main/docs/img/macos-notifications.png\" alt=\"macos-notifications\" width=\"600px\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.apple.com/mac/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Platform-mac-blue\" alt=\"Mac supported\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/macos-notifications\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/macos-notifications?color=%2334D058\u0026label=pypi%20package\" alt=\"Package version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/macos-notifications\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/macos-notifications.svg?color=%2334D058\" alt=\"Supported Python versions\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n**Documentation**: [https://jorricks.github.io/macos-notifications/](https://jorricks.github.io/macos-notifications/)\n\n**Source Code**: [https://github.com/Jorricks/macos-notifications](https://github.com/Jorricks/macos-notifications)\n\n---\n\n**mac-notification** is a Python library to make it as easy as possible to create interactable notifications.\n\n\n## Installation\n\nTo use macos-notifications, first install it using pip:\n\n    pip install macos-notifications\n\n\n## Features\n- 🚀 Easy python interface. It's as simple as '`client.create_notification(title=\"Meeting starts now!\", subtitle=\"Team Standup\")`'\n- 💥 Ability to add action buttons with callbacks!\n- 📝 Ability to reply to notifications!\n- ⌚ Delayed notifications.\n- ⏱️ Automatically time out the notification listener.\n- 📦 Just `pyobjc` as a dependency.\n\n## Example\n```python\nfrom functools import partial\nfrom mac_notifications import client\n\nif __name__ == \"__main__\":\n    client.create_notification(\n        title=\"Meeting starts now!\",\n        subtitle=\"Team Standup\",\n        icon=\"/Users/jorrick/zoom.png\",\n        sound=\"Frog\",\n        action_button_str=\"Join zoom meeting\",\n        action_callback=partial(join_zoom_meeting, conf_number=zoom_conf_number)\n    )\n```\nA simple example. Please look [in the docs](https://jorricks.github.io/macos-notifications/) for more examples like this:\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://jorricks.github.io/macos-notifications/examples/\"\u003e\n\u003cimg src=\"https://github.com/Jorricks/macos-notifications/raw/main/docs/img/example-run.gif\" alt=\"macos-notifications\" width=\"600px\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n##  Why did you create this library?\nI wanted a library that did not depend on any non-python tools (so you had to go around and install that). Instead, I wanted a library where you install the pip packages, and you are done.\nLater I realised how hard it was to integrate correctly with PyOBJC. Also, I had a hard time finding any examples on how to easily integrate this in a non-blocking fashion with my tool.\nHence, I figured I should set it up to be as user-friendly as possible and share it with the world ;)!\n\n\n## Limitations\nAlthough there are some limitations, there is no reason to not use it now :v:.\n- You need to keep your application running while waiting for the callback to happen.\n- We do not support raising notifications from anything but the main thread. If you wish to raise it from other threads, you need to set up a communication channel with the main thread, which in turn than raises the notification.\n- Currently, we are only supporting the old deprecated [user notifications](https://developer.apple.com/documentation/foundation/nsusernotification). If you wish to use the new implementation, please feel free to propose an MR.\n- You can not change the main image of the notification to be project specific. You can only change the Python interpreter image, but that would impact all notifications send by Python.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorricks%2Fmacos-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorricks%2Fmacos-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorricks%2Fmacos-notifications/lists"}