https://github.com/wxpusher/wxpusher-sdk-python
微信消息实时推送服务[WxPusher]的Python版本sdk,可以通过API实时给个人微信推送消息。wechat pusher.
https://github.com/wxpusher/wxpusher-sdk-python
notification push-notification python python-sdk python3 wechat weixin wxpusher
Last synced: about 6 hours ago
JSON representation
微信消息实时推送服务[WxPusher]的Python版本sdk,可以通过API实时给个人微信推送消息。wechat pusher.
- Host: GitHub
- URL: https://github.com/wxpusher/wxpusher-sdk-python
- Owner: wxpusher
- License: apache-2.0
- Created: 2020-01-17T02:08:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T08:46:59.000Z (about 2 years ago)
- Last Synced: 2026-03-14T10:18:44.861Z (4 months ago)
- Topics: notification, push-notification, python, python-sdk, python3, wechat, weixin, wxpusher
- Language: Python
- Homepage: http://wxpusher.zjiecode.com/demo
- Size: 14.6 KB
- Stars: 286
- Watchers: 7
- Forks: 50
- Open Issues: 0
-
Metadata Files:
- Readme: README-en.md
- License: LICENSE
Awesome Lists containing this project
README
# WxPusher
[](https://badge.fury.io/py/wxpusher)
[](https://pypi.python.org/pypi/wxpusher/)
[](https://pypi.python.org/pypi/wxpusher/)
[](https://pepy.tech/project/wxpusher)
WxPusher Python SDK.
*Read this in other languages: [English](README-en.md), [简体中文](README.md).*
## Getting Started
### Installation
```shell
pip install -U wxpusher
```
### Usage
```python
from wxpusher import WxPusher
WxPusher.send_message('',
uids=[''],
topic_ids=[''],
token='')
WxPusher.query_message('')
WxPusher.create_qrcode('', '', '')
WxPusher.query_user('', '', '')
```
## 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 `wxpusher/tests/` to `config.py`
```shell
cd 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
```shell
tox
```
or nose directly
```shell
nosetests
```
## TODO
- [x] Basic structure with PyPI uploaded.
- [x] Send Message.
- [x] Query Message.
- [x] Create QRCode.
- [x] Query User.
- [ ] More client validators.
- [ ] Command line scripts.
- [ ] Better documentation.
- [ ] More robust unittest.
## Contribution
- Comments or suggestions via github issues.
- Pull requests are welcome absolutely.