Skip to main content

Django Wechat Base

基于django的微信基础模块, 包括使用django缓存, 图片存储等

Quick Start

Install

$ pip install django-wechat-base

Update settings.py

WECHAT = {
    'appid': '',
    'secret': '',
    ...
}

Usage

from wechat.wxa import Wxa

wxa = Wxa()
qrcode = wxa.get_qrcode('https://github.com/ChanMo/')
print(qrcode)

API List

Wxa

from wechat import wxa

小程序相关功能

  • get_pay_data 获取小程序支付数据
  • get_qrcode 获取小程序二维码
  • get_delivery 获取小程序物流信息

Wxb

from wechat import wxb

公众号模块

  • get_js_config 获取js配置json

Message

from wechat import message

消息模块

  • send 发送模块消息

Payment(v3)

from wechat import payment3

微信支付相关(v3)

  • get_pay_data 获取支付数据
  • parse_result 解析异步返回值
  • return_failure 返回错误信息
  • return_success 返回成功信息

Payment(v2)

微信支付相关(v2)

Release files for django-wechat-base 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-wechat-base 2.1.1
File Size Uploaded
django-wechat-base-2.1.1.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-wechat-base 2.1.1
File Interpreter ABI Platform
django_wechat_base-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.4 kB

Release files / django-wechat-base-2.1.1.tar.gz

Download URL django-wechat-base-2.1.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
81ff0853dbc47821d64dcf15390329db8a6494b14c1b0fc22cb239fb23418120
BLAKE2b-256 checksum
How to use checksums
2656a2255d24f55605893d4d4aa7b4b811141273bdc80ec1332a833a20003ef5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / django_wechat_base-2.1.1-py3-none-any.whl

Download URL django_wechat_base-2.1.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69301c6d49e5c489ca5629ecce2cca3284fb7b4054b5c044355776ab70c5ffcb
BLAKE2b-256 checksum
How to use checksums
9a9e9a04d7c15d21a4be3adf2032a11d4ab532ccfa839c96390e46ec924bda76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.0.0

1 release file

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

1 release file

1.0.1

2 release files

1.0.0

2 release files

0.6.2

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.3.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page