wcf-http
基于 wcferry 封装的 HTTP 客户端。
Python HTTP server for WeChatFerry v39.2.4,适配微信 3.9.10.27 WeChatSetup-3.9.10.27.exe
开箱即用(非开发者)
如果你是新手,不知道pip是什么,安装下面这两个文件,双击wcf-http-server运行就可以了
- WeChat客户端(可能需要卸载已安装版本)
- wcf-http-server安装包
- 关于安装路径
Install for anyone using this computer:右键 ->Run as administratorInstall just for me:直接运行就可以
- 关于安装路径
wcf-http-server运行以后可以在任务栏看到一个小图标,右键 -> Open API Docs会打开一个网页,可以用POST /callback接口设置回调。
更多关于回调的内容请参考:回调到底是什么?
开发者
安装
# 创建虚拟环境
python -m venv venv
# 激活虚拟环境 (Windows)
venv\Scripts\activate
# 安装依赖
pip install -U wcf-http-server
# 安装额外依赖systray,服务器在任务栏可见
pip install -U wcf-http-server[systray]
运行
# 查看版本
wcfhttp -v
# 查看帮助
wcfhttp -h
usage: wcfhttp [-h] [-v] [--wcf_host WCF_HOST] [--wcf_port WCF_PORT]
[--wcf_debug WCF_DEBUG] [--host HOST] [--port PORT] [--cb CB]
[--systray]
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
--wcf_host WCF_HOST WeChatFerry 监听地址,默认本地启动监听 0.0.0.0
--wcf_port WCF_PORT WeChatFerry 监听端口 (同时占用 port + 1 端口),默认 10086
--wcf_debug WCF_DEBUG
是否打开 WeChatFerry 调试开关
--host HOST wcfhttp 监听地址,默认监听 0.0.0.0
--port PORT wcfhttp 监听端口,默认 9999
--cb CB 接收消息回调地址
--systray Enable system tray icon
# 忽略新消息运行
wcfhttp
# 新消息转发到指定地址
wcfhttp --cb http://host:port/callback
接收消息回调接口文档
参考文档(默认地址为:http://localhost:9999/docs)接收消息回调样例。
更多关于回调的介绍可以参考这篇文章:回调到底是什么?
Metadata
Release files for wcf-http-server 39.2.4.1.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wcf_http_server-39.2.4.1.15.tar.gz | 323.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wcf_http_server-39.2.4.1.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 646.0 kB
Release files / wcf_http_server-39.2.4.1.15.tar.gz
| Download URL | wcf_http_server-39.2.4.1.15.tar.gz |
|---|---|
| Size | 323.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db22e50d96a9a842ac32b734bef8ae4da4838059c8f6c298175b0da89e4d6c2e
|
|
BLAKE2b-256 checksum How to use checksums |
ced1960f9928cbd1f3d65ac1de2524de49429dfd3b69b36ca4ee1ef352f10476
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.7 Windows/10
|
Release files / wcf_http_server-39.2.4.1.15-py3-none-any.whl
| Download URL | wcf_http_server-39.2.4.1.15-py3-none-any.whl |
|---|---|
| Size | 322.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b37371727dbf6ab716757e966897a6bd742b8966bdbcb6b1c381c206d03a5822
|
|
BLAKE2b-256 checksum How to use checksums |
494819781d08d80f484aa690ba08e9f111e2813bd9530abbfea1dd7ee395da42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.7 Windows/10
|