Query Youdao Dictionary in Command Line
Project description
有道词典命令行查询工具
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添加了拼写相似词推荐(参考)
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
youdao-dict-1.0.4.tar.gz
(2.4 MB
view hashes)
Built Distribution
Close
Hashes for youdao_dict-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fe039d8703e23d1a8a4e217113c91f49d0e79eda5b4b8d9aa7b38d199dd4da4 |
|
MD5 | 9637acb33c9f5c47449c64a212b43a97 |
|
BLAKE2b-256 | 12431403e52b0160ffc04bbb5fc7e24fae71cbffdae9c834cae9dc72afe51975 |