Skip to main content

无道词典增强版

Python Version from PEP 621 TOML plat


本项目基于无道词典,对其原有功能进行了修复、优化和增强。

⚠️⚠️⚠️ AI 警告 ⚠️⚠️⚠️

由于作者没有太多时间来维护和迭代这个项目,因此不得不借助 Codex 神力。

有什么变化?

以下是无道词典增强版与原无道词典功能的简要对比。

功能 无道词典增强版 无道词典
Python版本 3.8+,使用更新的语法 理论上支持Python3全版本
离线词典 支持 支持
离线词典形式 sqlite3数据库 自定义词表
词典服务进程 启动快 启动慢
词典服务进程实现 Python实现,随机端口 依赖shell脚本,固定端口
安装方法 打包上传pypi,
支持pip安装
git克隆仓库,
运行安装脚本
在线词典 支持 (见支持的在线词典) 已失效
生词本 暂不支持 支持
自动补全 暂不支持 支持
词条上报 已移除相关功能 已失效
词语发音 支持英语单词发音 不支持

截图

英汉:

En_Zh Demo

汉英:

Zh_En Demo

功能特性

  1. 继承自原无道词典的离线词典数据库。
  2. 支持在线查询,并使用在线释义更新离线数据库。
  3. 支持英语单词发音播放。

支持的在线词典

目前仅支持有道词典。

如何安装?

pip install wudao-dict-plus

发音功能

无道词典增强版的发音功能在不同平台上的实现略有差异,以下是对不同平台的要求。

Windows

Windows 平台的发音播放依赖于 VLC,需要自行安装 VLC 播放器,并安装可选依赖 python-vlc。

Linux

Linux 平台需要系统中安装以下播放器之一:

  • mpv
  • ffmpeg
  • paplay

MacOS

MacOS 平台依赖于 afplay 播放器,一般情况下不需要额外安装依赖。

使用说明

运行wd -h查看使用说明。

$ wd -h
usage: wd [-h] [-c | -d | -i | -k] [-s | -l] [-o] [--online {yes,no}] [--short {yes,no}]
          [--pronounce {yes,no}] [--pronounce-auto {yes,no}] [--pronounce-accent {uk,usa}]
          [--audio-cache {yes,no}] [--audio-cache-limit AUDIO_CACHE_LIMIT] [-u {yes,no}]
          [word [word ...]]

无道词典增强版 - 一个简洁优雅的命令行词典

positional arguments:
  word                  要查询的单词或短语

optional arguments:
  -h, --help            show this help message and exit
  -c, --config          打印全局配置选项
  -d, --daemon          在前台运行无道词典服务(可用于DEBUG)
  -i, --interactive     进入交互模式(未经测试,可能会出现未知错误)
  -k, --kill            退出服务进程
  -s, --short-once      仅本次查询启用简明模式
  -l, --long            仅本次查询关闭简明模式
  -o, --online-once     仅本次查询优先获取在线释义
  --online {yes,no}     是否强制优先获取在线释义,全局生效
  --short {yes,no}      是否启用简明模式,全局生效
  --pronounce {yes,no}  是否启用发音,全局生效
  --pronounce-auto {yes,no}
                        是否启用自动发音,全局生效
  --pronounce-accent {uk,usa}
                        英/美式发音切换,全局生效
  --audio-cache {yes,no}
                        是否启用发音缓存,全局生效
  --audio-cache-limit AUDIO_CACHE_LIMIT
                        设置发音缓存空间占用大小限制(大小: MB),全局生效
  -u {yes,no}, --update {yes,no}
                        是否使用在线释义更新离线数据库

支持英汉互查的功能,包含释义、词组、例句等有助于学习的内容。

查词时可以直接使用wd 词语查汉英词典,或wd word查英汉词典(可以自动检测)。

TODO

  • 更新最低Python支持版本
  • 更新词库
  • 更多神秘妙妙功能

致谢

  • 感谢原无道词典项目及其作者对本项目的启发。

Metadata

Release files for wudao-dict-plus 3.6.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 wudao-dict-plus 3.6.0
File Size Uploaded Provenance Actions
wudao_dict_plus-3.6.0.tar.gz 57.3 MB With provenance Details for wudao_dict_plus-3.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wudao-dict-plus 3.6.0
File Interpreter ABI Platform Actions
wudao_dict_plus-3.6.0-py3-none-any.whl Python 3 none any Details for wudao_dict_plus-3.6.0-py3-none-any.whl

Total release size: 113.9 MB

Release files / wudao_dict_plus-3.6.0.tar.gz

Download URL wudao_dict_plus-3.6.0.tar.gz
Size 57.3 MB
Tags Source
SHA-256 checksum
How to use checksums
20e6ad61f6b1ce48343f6b05a90dbae1aec73ed3806c2ed3ec75828e5228515b
BLAKE2b-256 checksum
How to use checksums
ec66d66d216f020b8c1d8738100f4c2ac6d675c2ab35436a304ba3bc0deed1a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / wudao_dict_plus-3.6.0-py3-none-any.whl

Download URL wudao_dict_plus-3.6.0-py3-none-any.whl
Size 56.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dd110f7f867591e5ea85034bc1e09db1b2a427fda892958176b50151b8f84ee7
BLAKE2b-256 checksum
How to use checksums
648388bf51c0f71d90afd5d81cd40d597b6a491a35bef0290eacf1442f182679
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for wudao-dict-plus 3.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wudao_dict_plus-3.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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