Skip to main content

一个玩微信的工具

Project description

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运行就可以了

  1. WeChat客户端(可能需要卸载已安装版本)
  2. wcf-http-server安装包
    1. 关于安装路径
      1. Install for anyone using this computer: 右键 -> Run as administrator
      2. Install 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)接收消息回调样例。

更多关于回调的介绍可以参考这篇文章:回调到底是什么?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wcf_http_server-39.2.4.1.15.tar.gz (323.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wcf_http_server-39.2.4.1.15-py3-none-any.whl (322.5 kB view details)

Uploaded Python 3

File details

Details for the file wcf_http_server-39.2.4.1.15.tar.gz.

File metadata

  • Download URL: wcf_http_server-39.2.4.1.15.tar.gz
  • Upload date:
  • Size: 323.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.7 Windows/10

File hashes

Hashes for wcf_http_server-39.2.4.1.15.tar.gz
Algorithm Hash digest
SHA256 db22e50d96a9a842ac32b734bef8ae4da4838059c8f6c298175b0da89e4d6c2e
MD5 c81e42ee17b8bbc1843f780096a4093a
BLAKE2b-256 ced1960f9928cbd1f3d65ac1de2524de49429dfd3b69b36ca4ee1ef352f10476

See more details on using hashes here.

File details

Details for the file wcf_http_server-39.2.4.1.15-py3-none-any.whl.

File metadata

File hashes

Hashes for wcf_http_server-39.2.4.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 b37371727dbf6ab716757e966897a6bd742b8966bdbcb6b1c381c206d03a5822
MD5 e28087b3f08572f351d27246674c438d
BLAKE2b-256 494819781d08d80f484aa690ba08e9f111e2813bd9530abbfea1dd7ee395da42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page