Skip to main content

A Simple package for ServerChan

Project description



适用的场景有异常警报、事件提醒、消息推送等。之所以做这个封装是因为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.")

Blog for lightpush

Project details

Download files

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

Files for lightpush, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size lightpush-0.1.3-py3-none-any.whl (2.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size lightpush-0.1.3.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page