Skip to main content

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)

Uploaded source

Built Distribution

youdao_dict-1.0.4-py3-none-any.whl (2.4 MB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page