Skip to main content

基于redis对wechat中access_token、qr_code、jsapi_ticket的cache

$ pip install jxwechattool

Version update

  • 0.1.0 添加WJSTicket

  • 0.0.1 添加WAccessToken, WQRCode

Getting Started

#!/bin/python2
# coding=utf-8

import logging
import WAccessToken, WQRCode, WJSTicket

logging.basicConfig(level=logging.DEBUG)

access_token_handler = WAccessToken(
    app_id=APP_ID,
    app_secret=APP_SECRET)

logging.warn(("access_token", access_token_handler.get_access_token()))

qr_handler = WQRCode(access_token_handler)

logging.warn(("qr ur", qr_handler.get_qrcode_url_by_m("c-8")))
logging.warn(("info ", qr_handler.get_qrcode_info_by_scene_id(80)))

jsapi_ticket_handler = WJSTicket(access_token_handler)

logging.warn(("jsapi_ticket", jsapi_ticket_handler.get_jsapi_ticket()))

Release files for jxwechattool 1.1.0

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

Source distribution (sdist)

Source distribution for jxwechattool 1.1.0
File Size Uploaded
jxwechattool-1.1.0.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jxwechattool 1.1.0
File Interpreter ABI Platform
jxwechattool-1.1.0-py2-none-any.whl Python 2 none any Details

Total release size: 8.0 kB

Release files / jxwechattool-1.1.0.tar.gz

Download URL jxwechattool-1.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0aa83bd4c35d1726f140084d5669b96a86936cda03afa9123ea35dbe4dc81211
BLAKE2b-256 checksum
How to use checksums
2f5d3e9e2fddda2b76a9bcc86fd959648770c36bbe4f6765542f0df3b3f5bcf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / jxwechattool-1.1.0-py2-none-any.whl

Download URL jxwechattool-1.1.0-py2-none-any.whl
Size 4.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
e9ad7d2d182ed01e7b7165509cedac064dfb213508265c571540366a96da6d95
BLAKE2b-256 checksum
How to use checksums
471584c62ab42cde359d3b8fa09e31aefdcb757e7ce7c3db91defb47f586a740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.0 This release

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