Skip to main content

A Python library to send notifications to your iPhone, Discord, Telegram, WeChat, QQ and DingTalk.

Project description

onepush

A Python library to send notifications to your iPhone, Discord, Telegram, WeChat, QQ and DingTalk.

Supported providers

Bark, Discord, Telegram, ServerChan, ServerChanTurbo, WechatWorkApp, WechatWorkBot, pushplus, go-cqhttp, Qmsg, DingTalk, Lark, SMTP, 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

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:

from onepush import notify

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

onepush-1.3.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file onepush-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: onepush-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for onepush-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 196af2e147a54381b5ffa32565f5f3955a0647328cc283812ce2f87f4bc09f47
MD5 936fa52d7420117874efed1bef4ba0ca
BLAKE2b-256 e1a21d65907128f1b7980d7da0e68b134298ced50d38df8ddf5133e32c8e9f99

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