Skip to main content

有道词典命令行查询工具

Install

$ pip install youdao-dict

Usages

$ youdao hello
                       _                       _ _      _
 _   _  ___  _   _  __| | __ _  ___         __| (_) ___| |_
| | | |/ _ \| | | |/ _` |/ _` |/ _ \ _____ / _` | |/ __| __|
| |_| | (_) | |_| | (_| | (_| | (_) |_____| (_| | | (__| |_
 \__, |\___/ \__,_|\__,_|\__,_|\___/       \__,_|_|\___|\__|
 |___/

=================================================
hello
=================================================
有道翻译:
int. 喂;哈罗
n. 表示问候, 惊奇或唤起注意时的用语
n. (Hello)人名;()埃洛
网络释义:
你好
您好
哈啰

=================================================
$ youdao hello world
$ youdao --shell

具体参数:

usage: youdao [-h] [--shell] [words [words ...]]

Youdao Dictionary in Command Line

optional arguments:
  -h, --help   show this help message and exit

Interactive Shell:
  --shell, -s

Pass Words as Arguments:
  words

Unit Test

使用下面的代码进行单元测试:

python -m unittest discover -s tests

DevLog

  • 2020-11-10 19:45:37 +0800: 添加不同后端(say, vlc, pyttsx3)的英文发音功能
  • 2020-11-10 16:01:17 +0800: 根据Edit Distance和Probability添加了拼写相似词推荐(参考)

Release files for youdao-dict 1.0.5

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

Source distribution (sdist)

Source distribution for youdao-dict 1.0.5
File Size Uploaded
youdao-dict-1.0.5.tar.gz 2.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for youdao-dict 1.0.5
File Interpreter ABI Platform
youdao_dict-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size:4.8 MB

Release files / youdao-dict-1.0.5.tar.gz

Download URL youdao-dict-1.0.5.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
cd7fbcf0ef1a3ec56131d3caa20d58d923a386b72e7ed5eff5c36f082bb87ca8
BLAKE2b-256 checksum
How to use checksums
a5acb37c111f9317a7d6b0ce46ffe948a46a74f945a1d838bab8c60c003cad0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release files / youdao_dict-1.0.5-py3-none-any.whl

Download URL youdao_dict-1.0.5-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3725f0a9e4b2f7ca82dd32babc2f202aab38c1bee0831bf1f17d5a028b689ed8
BLAKE2b-256 checksum
How to use checksums
8e9eab183e41264b27d1db5e9fad49a06dde7d33a81e993f9260867f78e62047
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.0

2 release files

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