pywxclient
A simple WeChat client is based on Web HTTP api, supporting authorization, login, fetching message and sending message.
Here we go:
>>> from pywxclient.core import Session, SyncClient
>>> s1 = Session()
>>> c1 = SyncClient(s1)
>>> c1.get_authorize_url() # Open the url in web browser
>>> c1.authorize() # Continue authorize when returning False
>>> c1.login()
>>> c1.sync_check()
>>> msgs = c1.sync_message() # Here are your wechat messages
>>> c1.flush_sync_key()
Features
WeChat authorization
WeChat login
Fetching WeChat contacts
Fetching all possible messages
Send text message
Send image message
Send video message
Send file message
Dump client as a dict
Load client from a dict
Local or network files uploading
pywxclient aims to only support Python 3, so there is no guarantee for Python 2.
Installation
We can simply use pip to install, as the following:
$ pip install pywxclient
or installing from git
$ pip install git+https://github.com/justdoit0823/pywxclient
Examples
In the examples directory, there are two simple python wechat client program as tutorials.
Or you can write a more complex wechat client with this pywxclient package.
CHANGELOG
Go to CHANGELOG.md.
How to Contribute
Open an issue, join a discussion or make a pull request.
Metadata
Release files for pywxclient 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pywxclient-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pywxclient-0.1.2-py3-none-any.whl |
Release files / pywxclient-0.1.2-py3-none-any.whl
| Download URL | pywxclient-0.1.2-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e7cc80377e4ecb8da46118cc25ba80e39771ded27d9168fc937c61849ba168f3
|
|
BLAKE2b-256 checksum How to use checksums |
8d46e6632c42d625935f92dab1c3ed7152f706bbcbdff196b20ffea0a21f2043
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pywxclient 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.