# zwczou/weixin-python

微信SDK - 包括微信支付,微信公众号,微信登陆,微信消息处理等

Repository: https://github.com/zwczou/weixin-python
Canonical: https://ross.abutalabs.com/products/weixin-python
Homepage: http://weixin-python.rtfd.io
Language: Python
License Family: other
Topics: python, weixin, flask, sdk
Last push: 2023-08-06T11:19:54+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3654, "days_push": 1123, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1675, forks 394 (observed 2026-08-28T04:05:20.512576+00:00)

## What it is
A Python SDK for WeChat (Weixin) that bundles WeChat login, official account management, payments, and message handling. It integrates with Flask via an init_app pattern and can also be used standalone or with Django.

## Use cases
- add WeChat OAuth login to a Flask app
- process incoming WeChat official account messages
- integrate WeChat Pay with merchant credentials and callbacks
- handle WeChat subscribe and text message events
- build a WeChat public account backend in Python

## When to choose
- you need a single Python library covering WeChat login, pay, and messaging
- your backend is Flask or Django and you want drop-in view functions
- you want simple config-driven initialization of WeChat features

## When to avoid
- you need actively maintained SDK with recent WeChat API versions (last release 2023)
- you only need the mini-program APIs, which are not covered
- your project requires a licensed dependency (GitHub repo shows no license)

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk, auth, web-framework, middleware
- domain: web-development, backend, apis, fintech, e-commerce
- platform: python
- tags: weixin, wechat, wechat-pay, wechat-login, official-account, flask-integration, flask

## Member repositories
- zwczou/weixin-python (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:20.512576+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:42:30.090720+00:00, confidence not recorded.
  - readme: https://github.com/zwczou/weixin-python (fetched 2026-08-28T04:05:20.512576+00:00, sha 591cee83ba2d)
  - registry_pypi: https://pypi.org/pypi/weixin-python/json (fetched 2026-08-29T11:15:49.336075+00:00, sha d27b4245465a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
