用于python的微信程序安全模块。
pywe-wxa-sec的Python项目详细描述
用于python的微信程序安全模块。
安装
pip install pywe-wxa-sec
用法
from pywe_wxa_sec.pywxasec import Security, msg_sec_check, img_sec_check
方法
class Security(BaseToken): def __init__(self, appid=None, secret=None, token=None, storage=None): super(Security, self).__init__(appid=appid, secret=secret, token=token, storage=storage) def img_sec_check(self, media_file=None, media_file_path=None, appid=None, secret=None, token=None, storage=None): def msg_sec_check(self, content, appid=None, secret=None, token=None, storage=None):