Wechat Sign Module for Python.
Project description
Wechat Sign Module for Python.
Installation
pip install pywe-sign
Usage
from pywe_sign import calculate_signature, check_signature, fill_signature, jsapi_signature, calculate_jsapi_signature, check_jsapi_signature, fill_jsapi_signature, basic_signature, calculate_basic_signature, calculate_callback_signature, check_callback_signature, calculate_msg_signature, check_msg_signature
Method
def format_url(params, api_key=None, ignore_zero=False): def calculate_signature(params, api_key, ignore_zero=False): def check_signature(params, api_key, sign=None, sign_key='sign', ignore_zero=False): def fill_signature(params, api_key, sign_key='sign', ignore_zero=False): def jsapi_signature(params, ignore_zero=False): def calculate_jsapi_signature(params, ignore_zero=False): def check_jsapi_signature(params, sign=None, sign_key='sign', ignore_zero=False): def fill_jsapi_signature(params, sign_key='sign', ignore_zero=False): def basic_signature(data, delimiter=b''): def calculate_basic_signature(data, delimiter=b''): def check_callback_signature(token, signature, timestamp, nonce): def basic_signature(data, delimiter=b''): def calculate_basic_signature(data, delimiter=b''): def calculate_callback_signature(token, timestamp, nonce): def check_callback_signature(token, signature, timestamp, nonce): def calculate_msg_signature(token, timestamp, nonce, encrypt): def check_msg_signature(token, msg_signature, timestamp, nonce, encrypt):
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywe-sign-1.1.0.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file pywe-sign-1.1.0.tar.gz
.
File metadata
- Download URL: pywe-sign-1.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/18.5 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89554c9f3be59d60aefde22c0b75601b5ab0476312314e6c878e14f97a65ede8 |
|
MD5 | f7d60b99df1d16518c7d110712ae24e4 |
|
BLAKE2b-256 | 486d1b7de9b874880c8eb191bc270bd984d04c2b7df9ea21aeece37c3443c617 |
File details
Details for the file pywe_sign-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pywe_sign-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/18.5 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae089a28fbd6ddaeb235ffc91530131280796003d2769112ef27ac9bb33264a8 |
|
MD5 | 01cd6a74bad0ec513d3f8569a9e8380f |
|
BLAKE2b-256 | b32f00cae3f3947bb485541f5b9f67e17f65e34507fa852d80185a6f6f0425f9 |