Push for python
Project description
ipush
APP 推送通知。支持往 钉钉群、飞书群、Lark 群、Bark、Chanify、PushDeer 推送消息。
使用说明
- 安装依赖
pip install -U ipush
- 创建
notify
对象,并发送消息
from ipush.notify.dingtalk import Dingtalk
from ipush.notify.feishu import Feishu
from ipush.notify.lark import Lark
notify = Dingtalk("token", "secret")
notify.send("ipush test")
notify = Feishu("token", "secret")
notify.send("ipush test")
notify = Lark("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/ | - |
开发
前置环境
- 使用 Rye 作为包管理工具
开发
- 安装依赖包:
# 同步
rye sync
- 代码检测与格式化:
# 检测
rye run check
# 格式化
rye run format
- 单元测试:
# rye test
rye run tests
# pytest
python -m pytest
# 打印测试报告
python -m pytest -s
仓库镜像
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ipush-0.2.0.tar.gz
(12.4 kB
view hashes)
Built Distribution
ipush-0.2.0-py3-none-any.whl
(13.2 kB
view hashes)