ipush
使用
1. 安装
pip install ipush
2. 代码示例
- 钉钉群
from ipush import Dingtalk
notify = Dingtalk('token', "secret")
notify.send('ipush test')
# or 'text', 'markdown'
notify.settype('markdown').send('**ipush** markdown test')
- 飞书群
from ipush import Feishu
notify = Feishu('token', "secret")
notify.send('ipush test')
- Lark 群
from ipush import Lark
notify = Lark('token', "secret")
notify.send('ipush test')
- Bark
from ipush import Bark
notify = Bark('token')
notify.send('ipush test', 'title')
notify.seturl('https://self-hosted')
notify.send('ipush test custom url')
- Chanify
from ipush import Chanify
notify = Chanify('token')
notify.send('ipush test')
notify.seturl('https://self-hosted')
notify.send('ipush test custom url')
- PushDeer
from ipush import PushDeer
notify = PushDeer('token')
notify.send('ipush test')
notify.seturl('https://self-hosted')
notify.send('ipush test custom url')
# or 'text', 'markdown'
notify.settype('text').send('ipush test')
- PushPlus
from ipush import PushPlus
notify = PushPlus('token')
notify.send('ipush test', 'title')
# or 'html', 'markdown', 'txt', 'json'
notify.settemplate('markdown').send('**ipush** markdown test')
- Showdoc
from ipush import Showdoc
notify = Showdoc('token')
notify.send('ipush test', 'title')
- Xizhi
from ipush import Xizhi
notify = Xizhi('token')
notify.send('ipush test', 'title')
- Telegram
from ipush import Telegram
notify = Telegram('token')
notify.send('ipush test', 'chat_id')
notify.seturl('https://self-hosted')
notify.send('ipush test custom url')
- Alertzy
from ipush import Alertzy
notify = Alertzy('token')
notify.send('ipush test', 'title')
- Notify
from ipush import Notify
notify = Notify('token', "user_id")
notify.send('ipush test', 'title')
- Juhe
from ipush import Juhe
notify = Juhe('token', 'service_id')
notify.send('ipush test', 'title')
# or 'html', 'markdown', 'txt', 'json'
notify.setdoctype('markdown').send('**ipush** markdown test')
- WeCom
from ipush import WeCom
notify = WeCom('token')
notify.send('ipush test', 'title')
# or 'text', 'markdown'
notify.setmsgtype('markdown').send('**ipush** markdown test')