A Python package implementing WeChat public platform, enterprise WeChat, WeChat Pay, third-party platform, and mini program cloud APIs for use in application code.
Overview
wechatpy is a third-party Python SDK for WeChat (Weixin) platform APIs. It covers passive message handling and active API calls for the public platform, enterprise WeChat, WeChat Pay, third-party components that act on behalf of official accounts, and mini program cloud development APIs.
Documentation describes message parsing and replies for common message and event types, plus active interfaces for menus, media, users, templates, OAuth, JS-SDK, and many operational APIs. Enterprise WeChat client APIs cover departments, users, materials, calendars, external contacts, and related endpoints.
The package installs via pip and is intended to be imported into Python applications. Example projects and Flask extensions are referenced in the documentation. Issue tracking is handled on GitHub.
Key features
- WeChat public platform messaging APIs
- Enterprise WeChat client APIs
- WeChat Pay interfaces
- Third-party platform component APIs
- Mini program cloud development APIs
- OAuth web authorization helpers
- Event and message parsing utilities
- pip-installable Python package
Use cases
- WeChat official account backends
- Enterprise WeChat integrations
- WeChat Pay payment flows
- Building bots for WeChat events