MCPcopy
hub / github.com/wechatpy/wechatpy

github.com/wechatpy/wechatpy @v1.8.14 sqlite

repository ↗ · DeepWiki ↗ · release v1.8.14 ↗
1,504 symbols 4,467 edges 142 files 641 documented · 43%
README
  ___       __   _______   ________  ___  ___  ________  _________  ________  ___    ___
 |\  \     |\  \|\  ___ \ |\   ____\|\  \|\  \|\   __  \|\___   ___\\   __  \|\  \  /  /|
 \ \  \    \ \  \ \   __/|\ \  \___|\ \  \\\  \ \  \|\  \|___ \  \_\ \  \|\  \ \  \/  / /
  \ \  \  __\ \  \ \  \_|/_\ \  \    \ \   __  \ \   __  \   \ \  \ \ \   ____\ \    / /
   \ \  \|\__\_\  \ \  \_|\ \ \  \____\ \  \ \  \ \  \ \  \   \ \  \ \ \  \___|\/  /  /
    \ \____________\ \_______\ \_______\ \__\ \__\ \__\ \__\   \ \__\ \ \__\ __/  / /
     \|____________|\|_______|\|_______|\|__|\|__|\|__|\|__|    \|__|  \|__||\___/ /
                                                                            \|___|/

GitHub Actions codecov.io PyPI Downloads Reviewed by Hound

微信(WeChat) 公众平台第三方 Python SDK。

【阅读文档】 【快速入门】

Join the chat at https://gitter.im/messense/wechatpy

功能特性

  1. 普通公众平台被动响应和主动调用 API
  2. 企业微信 API
  3. 微信支付 API
  4. 第三方平台代公众号调用接口 API
  5. 小程序云开发 API

安装

推荐使用 pip 进行安装:

pip install wechatpy
# with cryptography (推荐)
pip install 'wechatpy[cryptography]'
# with pycryptodome
pip install 'wechatpy[pycrypto]'

升级版本:

pip install -U wechatpy

使用示例

使用示例参见 examples

贡献代码

请阅读 贡献代码指南

问题反馈

我们主要使用 GitHub issues 进行问题追踪和反馈。

QQ 群:176596300

wechatpy QQ 群

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

Core symbols most depended-on inside this repo

_post
called by 271
wechatpy/client/api/base.py
_post
called by 96
wechatpy/pay/base.py
get
called by 72
wechatpy/pay/__init__.py
to_text
called by 46
wechatpy/utils.py
_get
called by 44
wechatpy/client/api/base.py
parse_message
called by 43
wechatpy/parser.py
to_binary
called by 35
wechatpy/utils.py
_to_date_str
called by 34
wechatpy/client/api/datacube.py

Shape

Method 1,099
Class 264
Function 133
Route 8

Languages

Python95%
TypeScript5%

Modules by API surface

tests/test_client.py123 symbols
wechatpy/events.py76 symbols
examples/wxjs/main/static/js/jquery-1.11.2.min.js75 symbols
tests/test_enterprise_client.py60 symbols
wechatpy/component.py46 symbols
wechatpy/fields.py45 symbols
wechatpy/client/api/card.py38 symbols
wechatpy/client/api/wxa.py35 symbols
wechatpy/replies.py33 symbols
wechatpy/client/api/merchant/__init__.py33 symbols
wechatpy/client/api/message.py25 symbols
wechatpy/crypto/__init__.py23 symbols

Dependencies from manifests, versioned

Django1.7 · 1×
enum341.1.4 · 1×
optionaldict0.1.0 · 1×
python-dateutil2.5.2 · 1×
requests2.4.3 · 1×
six1.8.0 · 1×
wechatpy0.7.1 · 1×
xmltodict0.11.0 · 1×

For agents

$ claude mcp add wechatpy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact