Python SDK for WeChat iLink Bot protocol
Project description
wechat-ilink-python-sdk
Python SDK for the WeChat iLink Bot protocol.
Features
- QR-code login flow for iLink bot accounts
- Async HTTP client for iLink APIs
- Long-polling message loop and dispatch
- Local credential and state persistence
- Example echo bot for quick start
Requirements
- Python 3.10+
Installation
Install the published package from PyPI:
pip install wechat-ilink-sdk
Quick Start
Import the public SDK entry points from the ilink package:
from ilink import ILinkClient, login_with_qr
print(ILinkClient)
print(login_with_qr)
Run the bundled example from a cloned repository:
python example.py
On first run, the bot will ask for QR-code login and cache credentials locally.
Main Modules
ilink.auth: QR-code login flowilink.client: async API client and polling loopilink.store: local persistence for credentials and cursorsilink.types: protocol models and enumsilink.utils: helper utilities
Development
Set up a local development environment with test dependencies:
uv sync --extra dev
Run the test suite through the installed package:
uv run pytest
Build release artifacts locally:
uv sync --extra release
uv run python -m build
uv run twine check dist/*
The manual PyPI release checklist lives in docs/releasing.md.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wechat_ilink_sdk-0.1.0.tar.gz.
File metadata
- Download URL: wechat_ilink_sdk-0.1.0.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20584270ca4bf7ef81a6ad0efefed6f9370b27e34dc1f70b77bcb58883232a62
|
|
| MD5 |
020d2a9b0cf1892f3d095116b18c9dac
|
|
| BLAKE2b-256 |
4aa3423ce9edb00f72262b4ef965857492c72d8d3f290a2d32bf96e43d8f0a1d
|
File details
Details for the file wechat_ilink_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wechat_ilink_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 31.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c39f65d3598aa23bdbc9043a338e5a5664b300159c461d053cda537c377ef103
|
|
| MD5 |
2db7277acdd74e1ea2223fc7f7ecc823
|
|
| BLAKE2b-256 |
13491b2fc6946eea43fad2920316d3c24cc097397dce02aa6b54cbb56ff72751
|