WxPusher Python SDK.
Project description
WxPusher
WxPusher Python SDK.
入门指南
安装
pip install -U wxpusher
使用
from wxpusher import WxPusher
WxPusher.send_message('<content>', '<uids>', '<appToken>')
WxPusher.query_message('<messageId>')
WxPusher.create_qrcode('<extra>', '<validTime>', '<appToken>')
WxPusher.query_user('<page>', '<page_size>', '<appToken>')
运行测试
配置
运行测试需要配置好 appToken
和 uids
。
首先,将 wxpusher/tests/
文件夹下的配置样例 config.sample.py
复制并命名为 config.py
。
cd python/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.1.0.tar.gz
(7.4 kB
view details)
Built Distribution
File details
Details for the file wxpusher-2.1.0.tar.gz
.
File metadata
- Download URL: wxpusher-2.1.0.tar.gz
- Upload date:
- Size: 7.4 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.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d27ff6629d41d99ae8c4325ae395eb9a094fbc4a1cc165db648821677e83ad7 |
|
MD5 | e8e48c552195eaa46d59d9a94cf52637 |
|
BLAKE2b-256 | d3bac46dafc8bd5f295ff889ebbfe2abf35131ea928b56bcf6a27fbb3bd2b8db |
File details
Details for the file wxpusher-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: wxpusher-2.1.0-py3-none-any.whl
- Upload date:
- Size: 7.9 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.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1400cf94742bc7b4e0110ccb3cf0df2d68b9448b22afc1481723dde4e4de5f44 |
|
MD5 | 1d6d995da4426f5493b9510974a3be44 |
|
BLAKE2b-256 | 9399e2b350cfbc8416f34e5c278514decaefda8bfe8d594b63d91f693aac06a6 |