首页 > 解决方案 > Python简单的android通知

问题描述

我正在寻找触发我的 android 的简单 python 推送通知。

我希望有一个像这样的简单库

import notif
notif.auth(bla_bla_bla)
notif.send("this message is from python")

我正在考虑使用电报,因为我看到它有点复杂,所以也许还有另一种简单的方法。

另一个支持信息:我将在我的 ubuntu 服务器上运行它。

标签: pythonpush-notificationandroid-notifications

解决方案


看看 PushBullet,它是一个在您的手机上运行的应用程序,您可以通过 API 请求触发它。

https://docs.pushbullet.com/

在谷歌上快速浏览后,我发现这个 Github 存储库包含看起来像一个用于发送通知的库

https://github.com/rbrcsk/pushbullet.py

使用这个,或者类似的东西可以解决你的问题


推荐阅读