# onepush
A Python library to send notifications to your iPhone, Discord, Telegram, WeChat, QQ and DingTalk.
## Supported providers
[Bark](https://apps.apple.com/us/app/bark-customed-notifications/id1403753865), [Discord](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks), [Telegram](https://core.telegram.org/bots), [ServerChan](https://sc.ftqq.com/3.version), [ServerChanTurbo](https://sct.ftqq.com), [WechatWorkApp](https://work.weixin.qq.com/api/doc/90000/90135/90236), [WechatWorkBot](https://work.weixin.qq.com/api/doc/90000/90136/91770), [pushplus](https://www.pushplus.plus/doc), [go-cqhttp](https://docs.go-cqhttp.org), [Qmsg](https://qmsg.zendee.cn/api.html), [DingTalk](https://developers.dingtalk.com/document/app/custom-robot-access), [Lark](https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN), [SMTP](https://docs.python.org/3/library/smtplib.html), Customised providers
## Installation
Via pip:
```
pip install onepush
```
Or via source code:
```
git clone https://github.com/y1ndan/onepush.git
cd onepush
python setup.py install
```
## Basic Usage
```python
from onepush import get_notifier
n = get_notifier('bark')
print(n.params)
response = n.notify(key='YOUR_BARK_KEY', title='OnePush', content='Hello World!')
print(response.text)
# {'required': ['key'], 'optional': ['title', 'content', 'sound', 'isarchive', 'icon', 'group', 'url', 'copy', 'autocopy']}
# {"code":200,"message":"success","timestamp":1633528319}
```
Or:
```python
from onepush import notify
notify('bark', key='YOUR_BARK_KEY', title='OnePush', content='Hello World!')
```
Raw data
{
"_id": null,
"home_page": "https://github.com/y1ndan/onepush",
"name": "onepush",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "notify notifier notification push discord telegram wechat qq dingtalk",
"author": "y1ndan",
"author_email": "y1nd4n@outlook.com",
"download_url": "",
"platform": null,
"description": "# onepush\n\nA Python library to send notifications to your iPhone, Discord, Telegram, WeChat, QQ and DingTalk.\n\n## Supported providers\n\n[Bark](https://apps.apple.com/us/app/bark-customed-notifications/id1403753865), [Discord](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks), [Telegram](https://core.telegram.org/bots), [ServerChan](https://sc.ftqq.com/3.version), [ServerChanTurbo](https://sct.ftqq.com), [WechatWorkApp](https://work.weixin.qq.com/api/doc/90000/90135/90236), [WechatWorkBot](https://work.weixin.qq.com/api/doc/90000/90136/91770), [pushplus](https://www.pushplus.plus/doc), [go-cqhttp](https://docs.go-cqhttp.org), [Qmsg](https://qmsg.zendee.cn/api.html), [DingTalk](https://developers.dingtalk.com/document/app/custom-robot-access), [Lark](https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN), [SMTP](https://docs.python.org/3/library/smtplib.html), Customised providers\n\n## Installation\n\nVia pip:\n\n```\npip install onepush\n```\n\nOr via source code:\n\n```\ngit clone https://github.com/y1ndan/onepush.git\ncd onepush\npython setup.py install\n```\n\n## Basic Usage\n\n```python\nfrom onepush import get_notifier\n\nn = get_notifier('bark')\nprint(n.params)\n\nresponse = n.notify(key='YOUR_BARK_KEY', title='OnePush', content='Hello World!')\nprint(response.text)\n\n# {'required': ['key'], 'optional': ['title', 'content', 'sound', 'isarchive', 'icon', 'group', 'url', 'copy', 'autocopy']}\n# {\"code\":200,\"message\":\"success\",\"timestamp\":1633528319}\n```\n\nOr:\n\n```python\nfrom onepush import notify\n\nnotify('bark', key='YOUR_BARK_KEY', title='OnePush', content='Hello World!')\n```\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python library to send notifications to your iPhone, Discord, Telegram, WeChat, QQ and DingTalk.",
"version": "1.3.0",
"project_urls": {
"Homepage": "https://github.com/y1ndan/onepush"
},
"split_keywords": [
"notify",
"notifier",
"notification",
"push",
"discord",
"telegram",
"wechat",
"qq",
"dingtalk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e1a21d65907128f1b7980d7da0e68b134298ced50d38df8ddf5133e32c8e9f99",
"md5": "936fa52d7420117874efed1bef4ba0ca",
"sha256": "196af2e147a54381b5ffa32565f5f3955a0647328cc283812ce2f87f4bc09f47"
},
"downloads": -1,
"filename": "onepush-1.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "936fa52d7420117874efed1bef4ba0ca",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 16691,
"upload_time": "2023-09-13T15:10:25",
"upload_time_iso_8601": "2023-09-13T15:10:25.045329Z",
"url": "https://files.pythonhosted.org/packages/e1/a2/1d65907128f1b7980d7da0e68b134298ced50d38df8ddf5133e32c8e9f99/onepush-1.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-13 15:10:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "y1ndan",
"github_project": "onepush",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "onepush"
}