Skip to main content

Dict-tiny

PyPI version

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

Metadata

Release files for dict-tiny 0.2.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 dict-tiny 0.2.5
File Size Uploaded
dict-tiny-0.2.5.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dict-tiny 0.2.5
File Interpreter ABI Platform
dict_tiny-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / dict-tiny-0.2.5.tar.gz

Download URL dict-tiny-0.2.5.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2c698ea0209dd6bec641e5e6cfd66d79b54a16adc3a06992858de89b64b53363
BLAKE2b-256 checksum
How to use checksums
a3d51f5b8980089e43bba06e20190229b69b1c3fb67eb692b514981e3e89198d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.2

Release files / dict_tiny-0.2.5-py3-none-any.whl

Download URL dict_tiny-0.2.5-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da9b3b840e8a0bf139cbab1a4dcc7f15d2dc214fa42ac20d6fc4f1ec05bc0bb4
BLAKE2b-256 checksum
How to use checksums
1c305314c7885d797b18e708d92899856e9d80e30b487542c128cd76c4eba6df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.2
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