Cambridge is a terminal version of Cambridge Dictionary. Its dictionary data comes from https://dictionary.cambridge.org.
Project description
Cambridge
Cambridge is a terminal version of Cambridge Dictionary.
The dictionary data comes from https://dictionary.cambridge.org
Screenshots
Look up a word
Look up a phrase
Why This
I'm a terminal person tired of pulling out a GUI app or browser, inputting words in the search bar, hitting the search button and then waiting for the result to render with a bunch of unnecessary static files coming along. Not only is the time taken long, but also switching apps back and forth can be annoying. So I wrote this console application with features to my satisfaction.
Features
- Just
camb
and "the word and phrase" you want to search. - Takes 0.5 ~ 3 secs including webpage fetching, depending on the network speed. Less than 0.1 secs for the same word's second time search.
- No unnecessary info, like ads, quizzes, pics, etc.
- Fetches the first dictionary on Cambridge without similar dictionaries with similar meanings making people dizzy.
- If not found, a list of related word suggestions will be displayed.
camb l
to list words you've searched successfully.camb l | fzf --preview 'camb {}'
, if you've installed fzf, you'll get the following magics:- fuzzy finding a word from the word list & instantly previewing the meaning for each word you've found
- displaying the whole word list & instantly previewing each word meaning as you scroll through the list
Installation
pip install cambridge
Usage
camb <word/phrase> # search a word or phrase. e.g. camb stone
camb <phrase with an apostrophe> # e.g. camb "a stone's throw" OR camb a stone\'s throw
camb <phrase with a slash> # e.g. camb "have your/its moments" OR camb have your\/its moments
camb -v <word/phrase> # search a word or phrase in verbose mode
camb l # list words you've searched successfully
camb l -d # delete a word from the word list
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.
Source Distribution
Built Distribution
File details
Details for the file cambridge-1.0.1.tar.gz
.
File metadata
- Download URL: cambridge-1.0.1.tar.gz
- Upload date:
- Size: 429.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ac8cbee41aa6b3a534a3a3e1e9312eaa8e2af510873959d7f791c679cb532a1 |
|
MD5 | 45766c80508e42deac54f0c786480df2 |
|
BLAKE2b-256 | 520d810950018c79bde116970590997c1d5186103d1d8485a73b8907a0fe6a58 |
File details
Details for the file cambridge-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: cambridge-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c2979f4b700417bb2403ef8a3d546c08b3bd3ea0bba26b892e88ce3d4d6e431 |
|
MD5 | f0363685d233d26e4cd3032e713a55ab |
|
BLAKE2b-256 | 440b1edeae0c40be5cda03e1baf9bf1dbac8e666d65b091c0d30fc22bdefe31e |