Skip to main content

WxPusher Python SDK.

Project description

WxPusher

PyPI version PyPI license Python Versions Downloads

WxPusher Python SDK.

其他语言版本: English, 简体中文.

入门指南

安装

pip install -U wxpusher

使用

from wxpusher import WxPusher
WxPusher.send_message('<content>',
                      uids='<uids>',
                      topic_ids='<topic_ids>',
                      token='<appToken>')
WxPusher.query_message('<messageId>')
WxPusher.create_qrcode('<extra>', '<validTime>', '<appToken>')
WxPusher.query_user('<page>', '<page_size>', '<appToken>')

运行测试

配置

运行测试需要配置好 appTokenuids

首先,将 wxpusher/tests/ 文件夹下的配置样例 config.sample.py 复制并命名为 config.py

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

然后,填写 config.py 中的相应信息。

启动测试

配置好后就可以使用 tox 来运行测试了。

tox

或者直接使用 nose 也可以

nosetests

TODO

  • 基本架构并上传到 PyPI
  • 发送消息.
  • 查询消息.
  • 创建二维码.
  • 查询用户.
  • 更完备的客户端验证.
  • 命令行脚本.
  • 更完善的文档.
  • 更完备的单元测试.

贡献

  • 通过 Github Issues 提交评论或建议。
  • 直接提交 Pull Requests 必须没问题。

Project details


Download files

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

Source Distribution

wxpusher-2.2.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

wxpusher-2.2.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file wxpusher-2.2.0.tar.gz.

File metadata

  • Download URL: wxpusher-2.2.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for wxpusher-2.2.0.tar.gz
Algorithm Hash digest
SHA256 2e275689cd04fa358f0df932ed1d305f9af40ede62afb6dee8fd64327020ba04
MD5 314ea15a08c63b252d9ec8e422454777
BLAKE2b-256 6603be2ad1ffc1216eabd738814311d341102dec006e4aeae5c0effa1ee76749

See more details on using hashes here.

File details

Details for the file wxpusher-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: wxpusher-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for wxpusher-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71d6ccab8b13b2f24fb16754ce6f8d0cdad484f85db9ef108138767b17c8c280
MD5 a639e1a067dc624c32b856238f50b27d
BLAKE2b-256 0d41221ad9896bbe61ddcbfbb033e1c31f8cd805e2750489b99f02d2503593ba

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