Skip to main content

向 APP、微信平台推送通知。支持 Telegram、钉钉群、飞书群、Lark 群、Bark 等平台。

Project description

ipush

向 APP、微信平台推送通知。 支持往 Telegram、钉钉群、飞书群、Lark 群、Bark、Chanify、PushDeer、PushPlus、Showdoc、息知、Alertzy、Notify 推送消息。


Package version Supported Python versions

使用说明

  1. 安装依赖
pip install -U ipush
  1. 创建 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/ -
// // 基于微信公众号 \\ \\
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. 前置开发环境

  1. 使用 Rye 作为包管理工具

2. 开发流程

  1. 安装依赖包:
# 同步
rye sync
  1. 代码检测与格式化:
# 检测
rye run check

# 格式化
rye run format
  1. 单元测试:
# 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.5.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

ipush-0.5.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file ipush-0.5.0.tar.gz.

File metadata

  • Download URL: ipush-0.5.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for ipush-0.5.0.tar.gz
Algorithm Hash digest
SHA256 50363e382e7cc6ca838f8b68eebdb4608d00dc664739ffc4bb9c1c98678e11ab
MD5 c8432ac945f4e47bed008f754b34b32c
BLAKE2b-256 0518e7ad8b7b9fd2b73a974215342edb4a6313dd3050deeebde9061935be2d4f

See more details on using hashes here.

File details

Details for the file ipush-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: ipush-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for ipush-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da99e4e966afc841ee9ec185a1523415c8715eb0def38dc6dfb28544d39acdbf
MD5 f18c1f2e1643a2037392b087e65cb2fa
BLAKE2b-256 c9be43b57ca67a77ef3380eeb16e476123c629790d5f9c77ce1b4a03cb95e507

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page