Skip to main content

WxPusher Python Client.

Project description

WxPusher

WxPusher Python client.

Getting Started

Installation

pip install -U wxpusher

Usage

from wxpusher import WxPusher
WxPusher.send_message('content', '<uids>', '<appToken>')
# Replace <uids> and <appToken> with the actual `uids` and `appToken`, note that `uids` should be a list.

Running the tests

Setup configuration

Configuration is necessary since the tests depend on VALID appToken and uids.

Frist, copy the configuration sample config.sample.py under python/wxpusher/tests/ to config.py

cd python/wxpusher/tests
cp config.sample.py config.py

Then, fill in the corresponding information in config.py.

Trigger the tests

With proper configuration, you can run the tests with tox

tox

or nose directly

nosetests

TODO

  • Basic structure with pypi uploaded.
  • Send Message.
  • Query Message.
  • Create QRCode.
  • WxUser.
  • Command line scripts.
  • Better documentation.
  • More robust unittest.

Contribution

  • Comments or suggestions via github issues.
  • Pull requests are welcome absolutely.

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

wxpusher-0.0.2-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

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