onepush


Nameonepush JSON
Version 1.7.0 PyPI version JSON
download
home_pagehttps://github.com/y1ndan/onepush
SummaryA Python library to send notifications to your iPhone, Discord, Telegram, WeChat, QQ and DingTalk.
upload_time2025-10-17 09:51:36
maintainerNone
docs_urlNone
authory1ndan
requires_python>=3.6
licenseMIT
keywords notify notifier notification push discord telegram wechat qq dingtalk
VCS
bugtrack_url
requirements requests pycryptodome
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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!')
```

## Proxy Support

You can use proxy with any notifier by adding the `proxies` parameter:

```python
# Using HTTP/HTTPS proxy
proxies = {
    'http': 'http://127.0.0.1:7890',
    'https': 'socks5h://127.0.0.1:7890'
}

notify('bark', 
       key='YOUR_BARK_KEY', 
       title='OnePush', 
       content='Hello World!',
       proxies=proxies)
```

The `proxies` parameter accepts the same format as the [requests library](https://requests.readthedocs.io/en/latest/user/advanced/#proxies).


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/y1ndan/onepush",
    "name": "onepush",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "notify notifier notification push discord telegram wechat qq dingtalk",
    "author": "y1ndan",
    "author_email": "y1nd4n@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/50/61/774edaf98baa7c0c48aa52eef53fa968849bb773640217b8349de1c1b48a/onepush-1.7.0.tar.gz",
    "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## Proxy Support\n\nYou can use proxy with any notifier by adding the `proxies` parameter:\n\n```python\n# Using HTTP/HTTPS proxy\nproxies = {\n    'http': 'http://127.0.0.1:7890',\n    'https': 'socks5h://127.0.0.1:7890'\n}\n\nnotify('bark', \n       key='YOUR_BARK_KEY', \n       title='OnePush', \n       content='Hello World!',\n       proxies=proxies)\n```\n\nThe `proxies` parameter accepts the same format as the [requests library](https://requests.readthedocs.io/en/latest/user/advanced/#proxies).\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.7.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": "39d6eae0c95d6c97c52b6afca97fae88c64f721d0fb46ffd6f5c437c285ccda4",
                "md5": "b0ea244f159e9201647e1645b95f4f56",
                "sha256": "a6d794eecf6095236362dec463c766de8838b59ab69a4dbc098f219d32ee6ad6"
            },
            "downloads": -1,
            "filename": "onepush-1.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b0ea244f159e9201647e1645b95f4f56",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 18082,
            "upload_time": "2025-10-17T09:51:35",
            "upload_time_iso_8601": "2025-10-17T09:51:35.459324Z",
            "url": "https://files.pythonhosted.org/packages/39/d6/eae0c95d6c97c52b6afca97fae88c64f721d0fb46ffd6f5c437c285ccda4/onepush-1.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5061774edaf98baa7c0c48aa52eef53fa968849bb773640217b8349de1c1b48a",
                "md5": "b0d793db61635f511202dae5723c41bc",
                "sha256": "efa22246375fa6978f7c65065e83e41724adef5189567e50aa93d1a61d0978ee"
            },
            "downloads": -1,
            "filename": "onepush-1.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b0d793db61635f511202dae5723c41bc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 9659,
            "upload_time": "2025-10-17T09:51:36",
            "upload_time_iso_8601": "2025-10-17T09:51:36.952232Z",
            "url": "https://files.pythonhosted.org/packages/50/61/774edaf98baa7c0c48aa52eef53fa968849bb773640217b8349de1c1b48a/onepush-1.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-17 09:51:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "y1ndan",
    "github_project": "onepush",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "requests",
            "specs": []
        },
        {
            "name": "pycryptodome",
            "specs": []
        }
    ],
    "lcname": "onepush"
}
        
Elapsed time: 4.41060s