Skip to main content

pywe-sign

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):

Metadata

Release files for pywe-sign 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 pywe-sign 1.1.0
File Size Uploaded Provenance Actions
pywe-sign-1.1.0.tar.gz 2.3 kB Without provenance Details for pywe-sign-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pywe-sign 1.1.0
File Interpreter ABI Platform Actions
pywe_sign-1.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for pywe_sign-1.1.0-py2.py3-none-any.whl

Total release size: 5.1 kB

Release files / pywe-sign-1.1.0.tar.gz

Download URL pywe-sign-1.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
89554c9f3be59d60aefde22c0b75601b5ab0476312314e6c878e14f97a65ede8
BLAKE2b-256 checksum
How to use checksums
486d1b7de9b874880c8eb191bc270bd984d04c2b7df9ea21aeece37c3443c617
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pywe_sign-1.1.0-py2.py3-none-any.whl

Download URL pywe_sign-1.1.0-py2.py3-none-any.whl
Size 2.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ae089a28fbd6ddaeb235ffc91530131280796003d2769112ef27ac9bb33264a8
BLAKE2b-256 checksum
How to use checksums
b32f00cae3f3947bb485541f5b9f67e17f65e34507fa852d80185a6f6f0425f9
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for pywe-sign 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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