Skip to content

对ServerChan 和 PushBear服务的一个简单封装,通过微信向用户或用户组推送消息提醒。

License

Notifications You must be signed in to change notification settings

anhenghuang/lightpush

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightpush

lightpush是对ServerChanPushBear服务的一个简单封装,能够通过微信向用户或用户组推送消息提醒。

适用的场景有异常警报、事件提醒、消息推送等。之所以做这个封装是因为py里每次调用requests有点丑 :)


lightpush 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

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.")

Blog for lightpush

About

对ServerChan 和 PushBear服务的一个简单封装,通过微信向用户或用户组推送消息提醒。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages