Wechat Exception Module for Python.
Project description
Wechat Exception Module for Python.
Installation
pip install pywe-exception
Usage
In [1]: from pywe_exception import WeChatException, WeChatPayException In [2]: raise WeChatException({"errcode": 40125, "errmsg": "invalid appsecret, view more at http://t.cn/RAEkdVq hint: [MVpSma0994e544]"}) --------------------------------------------------------------------------- WeChatException Traceback (most recent call last) <ipython-input-2-793779f73857> in <module>() ----> 1 raise WeChatException({"errcode": 40125, "errmsg": "invalid appsecret, view more at http://t.cn/RAEkdVq hint: [MVpSma0994e544]"}) WeChatException: {'errcode': 40125, 'errmsg': 'invalid appsecret, view more at http://t.cn/RAEkdVq hint: [MVpSma0994e544]'}
Method
class WeChatException(Exception): """ WeChatException """ class WeChatPayException(Exception): """ WeChatPayException """
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywe-exception-1.0.2.tar.gz
(1.6 kB
view details)
Built Distribution
File details
Details for the file pywe-exception-1.0.2.tar.gz
.
File metadata
- Download URL: pywe-exception-1.0.2.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfe1fe4e19a6a15e53aafd11175254505507c84360b9eeb0bafcb2bf87ce2274 |
|
MD5 | 73fb6e82884d09bd8c475b20f8a0b0c4 |
|
BLAKE2b-256 | 18fdd64ccf506fbcd292a8d6800ca76b81bd3fcf94056223ef7ee46cf6b933ac |
File details
Details for the file pywe_exception-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pywe_exception-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 263cae45e07c18bb8fe5fc06e3f852446c9116662ff1dd88d78555fe36313b5f |
|
MD5 | ef14695ce017247d01abbd6ed3439f27 |
|
BLAKE2b-256 | 10e5e39ebeb2122f47c0af0e45a5192945dae93046f7e582ef6e0feee9f060e5 |