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
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 <word/phrase>
to look up what you need. - Mostly takes less than 1s including web page fetching. Less than 0.1s for the same item's later search.
- Only fetches the first dictionary on Cambridge, getting rid of confuses by different dictionaries
- If not found, a list of related suggestions will be displayed.
camb l
to list words and phrases you've searched successfully.
With fzf
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 its meaning
- displaying the whole word list & instantly previewing each word meaning as you scroll through the list
- You can also add
alias cambl="camb l | fzf --preview 'camb {}'"
in your shell config for convenience
Installation
pip install cambridge
Usage
camb <word/phrase> # search a word or phrase. e.g. camb innocuous
camb <word/phrase> -v # search a word or phrase in verbose mode
camb l # list words searched successfully in alphabetical order
camb l -t # list words searched successfully in reverse chronological order
camb l -r # list 20 words from the word list randomly
camb l -d # delete a word from the word list
camb <phrase with an apostrophe> # e.g. camb "a stone's throw" | camb a stone\'s throw
camb <phrase with a slash> # e.g. camb "have your/its moments" | camb have your\/its moments
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-2.0.2.tar.gz
.
File metadata
- Download URL: cambridge-2.0.2.tar.gz
- Upload date:
- Size: 4.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2254a42702db3ae66b872aaeebce1311543dfb7400f8e1b513c3bfea2745071 |
|
MD5 | 8405920eef3b5440739b7512f1ac4a5a |
|
BLAKE2b-256 | c15a51dcaa8be1f06241010c225eab1bb74ed35300eafb40cc37b5399a6b470e |
File details
Details for the file cambridge-2.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: cambridge-2.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 763a3ba2468ec4d102b35a768eb0ed7dcd7b2c12101eff1cc80a82ba96eafeb6 |
|
MD5 | 51cc7e83119d34f00e5d3bf276adea65 |
|
BLAKE2b-256 | 504f2a8d54636af4f1e1a3f4910e03a0e4b2286388577ef0ea6dd1ab0c67a8ba |