Push for python
Project description
ipush
APP 推送通知
使用说明
- 安装依赖
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/ | - |
前置环境
- 使用 Rye 作为包管理工具
单元测试
# 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.1.1.tar.gz
(11.5 kB
view details)
Built Distribution
ipush-0.1.1-py3-none-any.whl
(11.1 kB
view details)
File details
Details for the file ipush-0.1.1.tar.gz
.
File metadata
- Download URL: ipush-0.1.1.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98acec91b1883a512f8838008be75ab1db21cb8a9af2db5f55d0f144c3abe095 |
|
MD5 | 0ae9d03b12fc2ab6245a7add8784703e |
|
BLAKE2b-256 | 33eb14446859e79689901fc67e9f877618fcefcab007727e833f5744f202f531 |
File details
Details for the file ipush-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: ipush-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9669fbd1828ff837dad921db0709448569e805f7e233fd69fa77afae3d7f980f |
|
MD5 | ad43133c4e41f9f1721454227fdf743f |
|
BLAKE2b-256 | 24b75accb10040b940d2f80aca950bbe18122abe37bd46107b6cbd493b5892be |