weixin2py | weixin2py-腾讯微信公众平台自动消息处理程序SDK(pythondjango)
kandi X-RAY | weixin2py Summary
kandi X-RAY | weixin2py Summary
weixin2py is a Python library. weixin2py has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has low support. You can download it from GitLab, GitHub.
运行测试服务器(默认工作在80端口)。 配置完毕后,登陆你的微信公众平台,设定访问地址为:微信公众平台的接口URL为也可以使用nginx+*cgi,任何你喜欢的方式。提供了脚本ctrl8020.sh来控制fcig模式的启动和关闭。. ###Basic Usage 访问登录,添加消息回复规则即可。 例如 想对用户发来的文本消息进行匹配,并回复一条文本消息,在管理面板中选择“文本>文本消息回复规则”,根据各个字段的提示进行填写即可。 如下示例图 用户发来的消息类型 2 回复的消息类型 ####示例:文本2文本 消息回复规则. ####插件 插件目前仅工作在文本回复阶段,在匹配到消息回复之后,会对回复消息进行以此渲染,渲染所用的信息字典就是插件返回的字典。 每一个插件所返回的字典内容都会被自动合并到一个字典,然后在你的消息回复定义中使用你所返回的字典中的变量即可(当然可以是动态) ####目录结构 插件目录位于weixin2py/plugins/ 目录结构如下. ###handler handler是拓展这个应用功能的另一种方式,最初开发使用的是这种方式,在没有数据库的情况下也可以正常运作,缺点是数据一旦写死修改很麻烦,适合用来生成动态内容,例如聊天机器人接口,查询接口之类的. ####结构 目前应用内置了两个router,file_router和db_router,执行的优先级是file_router->db_router,handler是file_router才有的结构。 ####编写一个handler 在任意应用目录新建一个handlers.py(只是约定,可以自定义名称),将handler书写到其中。一个典型的handler如下. ####在view中使用handler和router 示例文件:sample/views.py - 仅展现关键逻辑,详情参考具体文件. ###其他接口/工具类 weixin2py - class: WeiMsg - 从用户发送的消息从获得一个消息实例,自动识别类型并生成相应属性 weixin2py - function:check_signature(request, token) - 从一个request对象和指定token中验证消息是否合法,合法返回True,不合法返回False weixin2py - function:get_token(appid, secretkey) - 返回一个access_token,用于腾讯的其他接口的必要验证.
运行测试服务器(默认工作在80端口)。 配置完毕后,登陆你的微信公众平台,设定访问地址为:微信公众平台的接口URL为也可以使用nginx+*cgi,任何你喜欢的方式。提供了脚本ctrl8020.sh来控制fcig模式的启动和关闭。. ###Basic Usage 访问登录,添加消息回复规则即可。 例如 想对用户发来的文本消息进行匹配,并回复一条文本消息,在管理面板中选择“文本>文本消息回复规则”,根据各个字段的提示进行填写即可。 如下示例图 用户发来的消息类型 2 回复的消息类型 ####示例:文本2文本 消息回复规则. ####插件 插件目前仅工作在文本回复阶段,在匹配到消息回复之后,会对回复消息进行以此渲染,渲染所用的信息字典就是插件返回的字典。 每一个插件所返回的字典内容都会被自动合并到一个字典,然后在你的消息回复定义中使用你所返回的字典中的变量即可(当然可以是动态) ####目录结构 插件目录位于weixin2py/plugins/ 目录结构如下. ###handler handler是拓展这个应用功能的另一种方式,最初开发使用的是这种方式,在没有数据库的情况下也可以正常运作,缺点是数据一旦写死修改很麻烦,适合用来生成动态内容,例如聊天机器人接口,查询接口之类的. ####结构 目前应用内置了两个router,file_router和db_router,执行的优先级是file_router->db_router,handler是file_router才有的结构。 ####编写一个handler 在任意应用目录新建一个handlers.py(只是约定,可以自定义名称),将handler书写到其中。一个典型的handler如下. ####在view中使用handler和router 示例文件:sample/views.py - 仅展现关键逻辑,详情参考具体文件. ###其他接口/工具类 weixin2py - class: WeiMsg - 从用户发送的消息从获得一个消息实例,自动识别类型并生成相应属性 weixin2py - function:check_signature(request, token) - 从一个request对象和指定token中验证消息是否合法,合法返回True,不合法返回False weixin2py - function:get_token(appid, secretkey) - 返回一个access_token,用于腾讯的其他接口的必要验证.
Support
Quality
Security
License
Reuse
Support
weixin2py has a low active ecosystem.
It has 128 star(s) with 49 fork(s). There are 23 watchers for this library.
It had no major release in the last 6 months.
There are 1 open issues and 4 have been closed. On average issues are closed in 13 days. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of weixin2py is current.
Quality
weixin2py has no bugs reported.
Security
weixin2py has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
weixin2py is licensed under the GPL-2.0 License. This license is Strong Copyleft.
Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.
Reuse
weixin2py releases are not available. You will need to build from source code and install.
Build file is available. You can build the component from source.
Installation instructions are not available. Examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi has reviewed weixin2py and discovered the below as its top functions. This is intended to give you an instant insight into weixin2py implemented functionality, and help decide if they suit your requirements.
- Called when a database is received
- Create new Message objects from pattern
- View function
- Default handler
- Decorator to subscribe to a message
- Handler for receiving message
Get all kandi verified functions for this library.
weixin2py Key Features
No Key Features are available at this moment for weixin2py.
weixin2py Examples and Code Snippets
No Code Snippets are available at this moment for weixin2py.
Community Discussions
No Community Discussions are available at this moment for weixin2py.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install weixin2py
You can download it from GitLab, GitHub.
You can use weixin2py like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
You can use weixin2py like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page