无道词典增强版。对原有的无道词典的功能进行了修复和增强。
Project description
无道词典增强版
本项目基于无道词典,对其原有功能进行了修复、优化和增强。
有什么变化?
以下是无道词典增强版与原无道词典功能的简要对比。
| 功能 | 无道词典增强版 | 无道词典 |
|---|---|---|
| Python版本 | 3.8+,使用更新的语法 | 理论上支持Python3全版本 |
| 离线词典 | 支持 | 支持 |
| 离线词典形式 | sqlite3数据库 | 自定义词表 |
| 词典服务进程 | 启动快 | 启动慢 |
| 词典服务进程实现 | Python实现,随机端口 | 依赖shell脚本,固定端口 |
| 安装方法 | 打包上传pypi, 支持pip安装 |
git克隆仓库, 运行安装脚本 |
| 在线词典 | 支持 (见支持的在线词典) | 已失效 |
| 生词本 | 暂不支持 | 支持 |
| 自动补全 | 暂不支持 | 支持 |
| 词条上报 | 已移除相关功能 | 已失效 |
截图
英汉:
汉英:
功能特性
- 继承自原无道词典的离线词典数据库。
- 支持在线查询,并使用在线释义更新离线数据库。
支持的在线词典
目前仅支持有道词典。
如何安装?
pip install wudao-dict-plus
使用说明
运行wd -h查看使用说明。
$ wd -h
usage: wd [-h] [-c | -i | -k] [-s | -l] [-o] [--online {yes,no}] [--short {yes,no}] [-u {yes,no}] [word [word ...]]
无道词典增强版 - 一个简洁优雅的命令行词典
positional arguments:
word 要查询的单词或短语
optional arguments:
-h, --help show this help message and exit
-c, --config 打印全局配置选项
-i, --interactive 进入交互模式(未经测试,可能会出现未知错误)
-k, --kill 退出服务进程
-s, --short-once 仅本次查询启用简明模式
-l, --long 仅本次查询关闭简明模式
-o, --online-once 仅本次查询优先获取在线释义
--online {yes,no} 是否强制优先获取在线释义,全局生效
--short {yes,no} 是否启用简明模式,全局生效
-u {yes,no}, --update {yes,no}
是否使用在线释义更新离线数据库
支持英汉互查的功能,包含释义、词组、例句等有助于学习的内容。
查词时可以直接使用wd 词语查汉英词典,或wd word查英汉词典(可以自动检测)。
致谢
- 感谢原无道词典项目及其作者对本项目的启发。
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wudao_dict_plus-3.3.3.tar.gz.
File metadata
- Download URL: wudao_dict_plus-3.3.3.tar.gz
- Upload date:
- Size: 57.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f71d5d078c1a83e764c154b3dacb2a57b3d85a77f9962ce6755f5eff22fa1a7d
|
|
| MD5 |
094cadc8e39bda81ed9af0fa43ecedf1
|
|
| BLAKE2b-256 |
f01f0939c28588d779a2aeb3fcafa8cadcb08bd9bdbbdedf84ffd9afbcfa3c61
|
Provenance
The following attestation bundles were made for wudao_dict_plus-3.3.3.tar.gz:
Publisher:
pypi.yml on Syize/Wudao-dict-plus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wudao_dict_plus-3.3.3.tar.gz -
Subject digest:
f71d5d078c1a83e764c154b3dacb2a57b3d85a77f9962ce6755f5eff22fa1a7d - Sigstore transparency entry: 774894787
- Sigstore integration time:
-
Permalink:
Syize/Wudao-dict-plus@9c3518a34dd5113d61de55659d7b61d409257d75 -
Branch / Tag:
refs/tags/v3.3.3 - Owner: https://github.com/Syize
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@9c3518a34dd5113d61de55659d7b61d409257d75 -
Trigger Event:
release
-
Statement type:
File details
Details for the file wudao_dict_plus-3.3.3-py3-none-any.whl.
File metadata
- Download URL: wudao_dict_plus-3.3.3-py3-none-any.whl
- Upload date:
- Size: 56.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a88b90d62d9d36cfe6fe3aaa6ac5a79f17829457331441df7fc9e66618a8deb
|
|
| MD5 |
2ca10c9e7e7cf47a3ea3ab0520ae0bc5
|
|
| BLAKE2b-256 |
7fbd31b50ea28c48387e268fbd6131a7d367e28b19eaa1a8db8441d3a549031d
|
Provenance
The following attestation bundles were made for wudao_dict_plus-3.3.3-py3-none-any.whl:
Publisher:
pypi.yml on Syize/Wudao-dict-plus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wudao_dict_plus-3.3.3-py3-none-any.whl -
Subject digest:
8a88b90d62d9d36cfe6fe3aaa6ac5a79f17829457331441df7fc9e66618a8deb - Sigstore transparency entry: 774894788
- Sigstore integration time:
-
Permalink:
Syize/Wudao-dict-plus@9c3518a34dd5113d61de55659d7b61d409257d75 -
Branch / Tag:
refs/tags/v3.3.3 - Owner: https://github.com/Syize
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@9c3518a34dd5113d61de55659d7b61d409257d75 -
Trigger Event:
release
-
Statement type: