A Simple package for ServerChan
Project description
lightpush
这是对ServerChan 和 PushBear服务的一个简单封装,能够通过微信向用户或用户组推送消息提醒。
适用的场景有异常警报、事件提醒、消息推送等。之所以做这个封装是因为py里每次调用requests有点丑 :)
This is a simple package for ServerChan and PushBear.
ServerChan and PushBear are free services for you to push notifications to WeChat.
lightpush is a simple wrapper for those services.
You can install lightpush by
pip install lightpush --user
And it is very convenient to use lightpush (like ServerChan)
from lightpush import lightpush
lgp = lightpush()
# For ServerChan
lgp.set_single_push("Your Key")
lgp.single_push("Hello World","This is a msg from lightpush.")
# For PushBear
lgp.set_group_push("Your Key")
lgp.group_push("Hello World","This is a msg from lightpush.")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lightpush-0.1.3.tar.gz.
File metadata
- Download URL: lightpush-0.1.3.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60c0327a85f3638dee0b716c20cd2a3022eddbc1ee69d01a8947be9dc72aa964
|
|
| MD5 |
a9c8ff2f4a9bdf6637cba549c6bbe9ab
|
|
| BLAKE2b-256 |
9b06bd915ffbcb4026d7b5691d2a61d7f1c51ec0fa96cf5e660c41c1289bddde
|
File details
Details for the file lightpush-0.1.3-py3-none-any.whl.
File metadata
- Download URL: lightpush-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c92176e128229d876babbee1cc88fae3e8a56b1b6ed40b1b828b4526d9ea7a0b
|
|
| MD5 |
93cf2073ff1db4d99d976a57a176bd39
|
|
| BLAKE2b-256 |
cd92234f0584cbe490ce269432043fda2bceda83ca329fc5fa463bbb2d19c2c8
|