Skip to main content

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

```shell
$ dict-tiny book
n. 书籍;卷;账簿;名册;工作簿
vt. 预订;登记
n. (Book)人名;(中)卜(广东话·威妥玛);(朝)北;(英)布克;(瑞典)博克
```

```shell
$ dict-tiny 书
n.book;letter;script
vt.write
```
##### Translate the word in clipboard

Use `-c`/`--clipboard` to translate the word in clipboard:


```shell
$ 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:

```shell
$ dict-tiny 曾经 -m
曾经
===
adv.once;ever

more detail:
======== 副词 ========
1:
(表示有过某些行为或情况) once:
He once lived in Shanghai.
他曾经在上海住过。
She has taken part in a major battle for oil.
她曾经参加过石油大会战。

```

```shell
$ dict-tiny html -m
html
=====
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.

```shell
$ pip3 install dict-tiny
```

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

dict-tiny-0.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

dict_tiny-0.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file dict-tiny-0.2.tar.gz.

File metadata

  • Download URL: dict-tiny-0.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dict-tiny-0.2.tar.gz
Algorithm Hash digest
SHA256 335935287a862616abd521281680df635d418e0aac8b6a3f3b240068d3c06f0c
MD5 04f83d853753f33f4ee1d4da6d7e9374
BLAKE2b-256 be019e65b0609d5d0f4fb09675f123d529a07f0c5542b1c9c16b5f7346a33f5d

See more details on using hashes here.

File details

Details for the file dict_tiny-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dict_tiny-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b39ba83679b83d781f2dea9b617966143e2a0e0c81a5ac2b7d759cb3805cb81e
MD5 845f1fe6d49572357cd18af11eb48dad
BLAKE2b-256 9f3b134678ceec405fa24f270360c7a3c8cb0fd622f8fa08109ee50b6d8f1fb9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page