【文件属性】:
文件名称:桌面通知程序:用于跨平台桌面通知的Python库
文件大小:4.57MB
文件格式:ZIP
更新时间:2021-02-10 08:47:20
notifications desktop Python
桌面通知器
desktop-notifier是用于跨平台桌面通知的Python库。 当前支持的平台是:
通过dbus服务org.freedesktopLinux。
通过通知中心框架的macOS和iOS
产品特点
本机平台API支持的位置:
可点击的通知
带按钮的通知
带回复字段的通知
Asyncio集成可在用户交互时执行回调
通知音
限制通知中心显示的最大通知数
仅纯Python依赖项,无扩展模块
安装
从PyPI:
pip3 install -U desktop-notifier
用法
基本用法仅要求用户指定通知标题和消息:
from desktop_notifier import DesktopNotifier
notifier = DesktopNotifier ()
n = notifier . send ( title = "Hello world!" , messag
【文件预览】:
desktop-notifier-master
----.github()
--------ISSUE_TEMPLATE.md(327B)
--------workflows()
----src()
--------desktop_notifier()
----CONTRIBUTING.md(989B)
----LICENSE(1KB)
----requirements_dev.txt(87B)
----setup.cfg(712B)
----setup.py(2KB)
----README.md(5KB)
----.pre-commit-config.yaml(309B)
----screenshots()
--------macOS.gif(2.96MB)
--------macOS.png(1.82MB)
----docs()
--------.nojekyll(0B)
--------conf.py(1KB)
--------requirements.txt(64B)
--------index.rst(4KB)
--------background()
----tests()
--------__init__.py(46B)
----.gitignore(859B)