Skip to main content

pywxauto

基于 UIAutomation 的微信自动化 Python 库,支持消息发送、聊天监听等功能,适用于机器人开发、自动化办公等场景。

构建

生成 .pyd 文件(Cython 编译)

将 pywxauto/wx.py 编译为 .pyd 二进制扩展模块,用于分发时保护源码。

前置条件:

  1. pip install cython
  2. 安装 Microsoft Visual C++ Build Tools(Visual Studio Installer → "使用 C++ 的桌面开发" 工作负载)

生成命令:

python build_pyd.py

编译后的 .pyd 文件会生成在 pywxauto/ 目录下,如 pywxauto/wx.cp312-win_amd64.pyd。

生成 .pyi 文件(类型存根)

生成 .pyi 类型存根文件,为 IDE 提供代码补全和类型检查支持。

前置条件:

  1. pip install mypy

生成命令:

stubgen pywxauto/wx.py -o . --include-docstrings

生成的 pywxauto/wx.pyi 文件包含所有公开类和函数的类型签名及文档字符串。

Release files for pywxauto 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pywxauto 1.1.0
File Size Uploaded
pywxauto-1.1.0.tar.gz 22.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pywxauto 1.1.0
File Interpreter ABI Platform
pywxauto-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 45.7 MB

Release files / pywxauto-1.1.0.tar.gz

Download URL pywxauto-1.1.0.tar.gz
Size 22.8 MB
Tags Source
SHA-256 checksum
How to use checksums
21ec07c77eb352a4ce05c9202bbfc699a9846928d6166cff11321b2ff0e45d33
BLAKE2b-256 checksum
How to use checksums
ea6e989edd58284a8ddae2e870ec1c65d37c95ae84aab39dc7bd042fc4636f29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pywxauto-1.1.0-py3-none-any.whl

Download URL pywxauto-1.1.0-py3-none-any.whl
Size 22.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
78165183e3ae9bbf791363010aa7fcf718a9757a414272fd8ff16e6d6f7320bb
BLAKE2b-256 checksum
How to use checksums
534a6197ef390770e9d39ba799ddd19719fe892fffe2f7479c17079bb41afd9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page