{"id":15722892,"url":"https://github.com/bkbilly/dbus_notification","last_synced_at":"2025-08-23T05:05:33.047Z","repository":{"id":250506170,"uuid":"834655646","full_name":"bkbilly/dbus_notification","owner":"bkbilly","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-28T10:55:51.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T13:39:19.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bkbilly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"bkbilly","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.paypal.me/bkbillybk"]}},"created_at":"2024-07-28T00:14:34.000Z","updated_at":"2024-08-09T02:19:32.000Z","dependencies_parsed_at":"2024-10-24T17:32:03.987Z","dependency_job_id":"f90735c9-23f3-42f5-b645-2c3ad9183203","html_url":"https://github.com/bkbilly/dbus_notification","commit_stats":null,"previous_names":["bkbilly/dbus_notification","bkbilly/dbus_notify"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fdbus_notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fdbus_notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fdbus_notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkbilly%2Fdbus_notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bkbilly","download_url":"https://codeload.github.com/bkbilly/dbus_notification/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244667116,"owners_count":20490375,"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","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":[],"created_at":"2024-10-03T22:09:37.364Z","updated_at":"2025-03-20T18:22:38.680Z","avatar_url":"https://github.com/bkbilly.png","language":"Python","funding_links":["https://github.com/sponsors/bkbilly","https://www.paypal.me/bkbillybk"],"categories":[],"sub_categories":[],"readme":"# DBus Notification\n\n[![PyPI](https://img.shields.io/pypi/v/dbus-notification.svg)](https://pypi.python.org/pypi/dbus-notification)\n![Python versions](https://img.shields.io/pypi/pyversions/dbus-notification.svg)\n![License](https://img.shields.io/pypi/l/dbus-notification.svg)\n\n\nThis library provides a simple interface for creating and displaying desktop notifications with custom buttons. Please note that some features might have varying levels of support across different Linux distributions.\n\n\n## Features:\n\n * Send notifications with custom titles, messages, and images\n * Include clickable buttons for user interaction\n * Control notification urgency, timeout, and sound\n**Note:** Some features might have limited support depending on your desktop environment.\n\n\n## Requirements\n\nDBus Notification has minimal system dependencies:\n* Python 3.7 or later\n* `dasdbus` library\n\n## Installation\n\nInstall the library using pip:\n\n```bash\npip install dbus-notification\n```\n\n## Usage\n\nThis library offers two primary usage approaches:\n\n### Command-Line Interaction\n\nIf you prefer a quick way to view information or control playback, you can potentially execute the dbus-notification script directly, though this doesn't support button actions. For more extensive programmatic control, I would recommend using the library within your Python code.\n\n### Programmatic Control\n\nImport the DBusNotification class from your Python code:\n\n```python\nimport time\nfrom dbus_notification import DBusNotification\n\ndef callback(notification_type, notification):\n    if notification_type == \"closed\":\n        print(f\"Notification {notification[\"id\"]} has closed.\")\n    elif notification_type == \"button\":\n        print(f\"Notification {notification[\"id\"]} has clicked on the button {notification[\"button\"]}.\")\n\nDBusNotification(appname=\"dbus_notification\", callback=callback).send(\n    title=\"test\",\n    message=\"this is a test message\",\n    logo=\"logo.png\",\n    image=\"myimage.png\",\n    sound=\"message-new-instant\",\n    actions=[\"Test Button\"],\n    urgency=1,\n    timeout=100,\n)\n\n# Keep the app running\nwhile True:\n    time.sleep(1)\n```\n\n## Future Features\n\n * Support for notification categories\n * Resident or transient notification options\n * Ability to specify notification position on the screen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkbilly%2Fdbus_notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbkbilly%2Fdbus_notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkbilly%2Fdbus_notification/lists"}