A tiny command-line dictionary that scrapes youdao.com.
Project description
Dict-tiny
Dict-tiny is a tiny command-line utility to look up English words or Chinese words from youdao.com. Just for fun :)
You can use dict-tiny
in this way:
Translate an English word or Chinese word
$ dict-tiny book book 英[bʊk]美[bʊk] =================== n. 书籍;卷;账簿;名册;工作簿 vt. 预订;登记 n. (Book)人名;(中)卜(广东话·威妥玛);(朝)北;(英)布
$ dict-tiny 书 书 [shū] ========= n.book;letter;script vt.write
Translate the word in clipboard
Use -c
/--clipboard
to translate the word in clipboard:
$ dict-tiny -c 命令行 ====== command line
Note:
-c
/--clipboard
has high priority. If you add-c
and a word at the same time, the word will be considered invalid.
Get more detail translation about the word
Use -m
/--more
to get more detail translation:
$ dict-tiny 曾经 -m 曾经 [céng jīng] ================ adv.once;ever more detail: ======== 副词 ======== 1: (表示有过某些行为或情况) once: He once lived in Shanghai. 他曾经在上海住过。 She has taken part in a major battle for oil. 她曾经参加过石油大会战。
$ dict-tiny html -m html [,eitʃ ti: em 'el] ========================= abbr. 超文本标记语言(Hypertext Markup Language) more detail: ======== abbr. ======== 1: hypertext markup language 【计算机】超文本标记语言
Note:
- You can use
-c
and-m
at the same time, which means get more detail translation about the word in clipboard. - Some words have a lot of translation that may occupy the entire screen.
Installation
You can install dict-tiny
via the pip package manager.
$ pip3 install dict-tiny
Upgrading
$ pip3 install --upgrade dict-tiny
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size dict_tiny-0.2.3-py3-none-any.whl (6.9 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size dict-tiny-0.2.3.tar.gz (6.0 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for dict_tiny-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0f8d03d94a413c9dcae6f0131d53f05478ff02f8d1a08330f7a9f965e8406bb |
|
MD5 | 6fe09377b558de22a1c5f3956ff8c53c |
|
BLAKE2-256 | 780c27258e696e80f294f99a31918a23289acc6259ba19d39f213dc667894b95 |