ipush
向 APP、微信平台推送通知。 支持往 Telegram、钉钉群、飞书群、Lark 群、Bark、Chanify、PushDeer、PushPlus、Showdoc、息知、Alertzy、Notify 推送消息。
使用说明
- 安装依赖
pip install -U ipush
- 创建
notify对象,并发送消息
from ipush import Dingtalk
notify = Dingtalk("token", "secret")
notify.send("iPush test")
支持平台
| 状态 | 国内平台 | 官网 | 备注 |
|---|---|---|---|
| ✔ 荐 | 钉钉群机器人 | https://open.dingtalk.com/ | |
| ✔ 荐 | 飞书群机器人 | https://open.feishu.cn/ | |
| ✔ 荐 | Lark 群机器人 | https://open.larksuite.com/ | |
| ✔ 荐 | Bark | https://day.app/2021/06/barkfaq/ | 仅支持 iOS |
| ✔ | Chanify | https://www.chanify.net/ | 仅支持 iOS |
| ✔ | PushDeer | https://www.pushdeer.com/ | |
| ✔ 荐 | 企业微信群机器人 | https://developer.work.weixin.qq.com | |
| // | // | 基于微信公众号 | \\ |
| ✔ | PushPlus | https://www.pushplus.plus/ | |
| ✔ | Showdoc | https://push.showdoc.com.cn/ | |
| ✔ | 息知 | https://xz.qqoq.net/ | |
| ✔ | 聚合云推 | https://tui.juhe.cn/ | 聚合推送。支持 邮箱、微信公众号、钉钉机器人、WebHook、企业微信、Bark |
| 状态 | 国外平台 | 官网 | 备注 |
|---|---|---|---|
| ✔ 荐 | Telegram | https://core.telegram.org/bots/ | 创建Bot后,将 Bot 添加至群组或频道,再添加获取 ChatId 的机器人进群组(可移除),即可获得ChatId |
| ✔ | Alertzy | https://alertzy.app/ | |
| ✔ | Notify | https://notify.dev/ | 安装手机 APP,复制设备 ID(Settings -> Device ID),输入到 Playground,获取二维码,再使用手机 APP 扫描 |
开发
1. 前置开发环境
- 使用 Rye 作为包管理工具
2. 开发流程
- 安装依赖包:
# 同步
rye sync
- 代码检测与格式化:
# 检测
rye run check
# 格式化
rye run format
- 单元测试:
# rye test
rye run tests
# pytest
python -m pytest
# 打印测试报告
python -m pytest -s
仓库镜像
Metadata
Release files for ipush 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ipush-0.6.0.tar.gz | 17.3 kB | Without provenance | Details for ipush-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipush-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for ipush-0.6.0-py3-none-any.whl |
Total release size: 37.1 kB
Release files / ipush-0.6.0.tar.gz
| Download URL | ipush-0.6.0.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a4a3f018a6e578843757145ef0849e90bebbf066139719ce8262cfc27e5ab3e
|
|
BLAKE2b-256 checksum How to use checksums |
2bfb80b69a0eca0f87d99dd56df7d9fe5737839f59b63f440d42cd98cc0d0b66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / ipush-0.6.0-py3-none-any.whl
| Download URL | ipush-0.6.0-py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aad77abe9f77bbdbf6fe4817113bc3c6e1147e9152c5a71cda079a6865b5e5c5
|
|
BLAKE2b-256 checksum How to use checksums |
5515ea8a814b418ecc00ec5d978c1e2533288c870cf67a7dda3bac5e83e20089
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for ipush 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.