Cambridge
cambridge is a terminal version of Cambridge Dictionary, whose source is from https://dictionary.cambridge.org; also supports the Merriam-Webster Dictionary as backup.
Screenshots
Look up words/phrases in Cambridge Dictionary (screenshot on DARK terminal background)
Look up words/phases in Merriam-Webster Dictionary (screenshot on LIGHT terminal background)
Highlights
camb <word/phrase>to look up in Cambridge Dictionary by defaultcamb -c <word/phrase>to look up in Cambridge Dictionary with correspondent Chinese meaningscamb -w <word/phrase>to look up in Merriam-Webster Dictionary- support concurrent searching multiple words from one dictionary, or multiple words from different dictionaries
- less than 2s taken to do all the work for the word, including fetching, parsing, printing, and writing cache
- less than 0.1s for the same word's later search by retrieving cache
- only the first dictionary from Cambridge (assuming the optimal) to avoid being confused by multiple dictionaries
- a list of suggestions will be given, if not found
camb lto list cached words and phrases- support checking "Word of the Day" from Merriam-Webster Dictionary
- support displaying spellcheck suggestion list, cache list, Webster's all of word of the days by
fzf - if
fzfnot installed, the aforementioned lists have been formatted elaborately - well tuned to dark, light, blueish, grayish,
gruvbox(dark & light),solarized(dark & light) terminal colorschemes
Install & Uninstall
pip install cambridge
pip uninstall -r requirements.txt -y
rm -rf $HOME/.cache/cambridge
rm -rf $HOME/.cache/fakeua
# within the project
make install
make uninstall
make clean_cache
Usages
Command s (hidden)
For looking up words/phrases in a dictionary or multiple dictionaries.
camb <word/phrase>[, w/p, w/p, ...] # look up words/phrases in Cambridge Dictionary
camb -w <word/phrase>[, w/p, w/p, ...] # look up words/phrases in Merriam-Webster Dictionary
camb -c <word/phrase>[, w/p, w/p, ...] # look up words/phrases in Cambridge with Chinese translation
camb <w/p>[, <w/p>, ...] -w <w/p>[, <w/p>, ...] -c <w/p>[, <w/p>, ...] # look up words/phrases from multiple dictionaries all at once
# Additional Options
--debug # look up words/phrases in debug mode
-f # look up words/phrases afresh without using cache
-n # look up words/phrases without showing suggestions if not found
# Special Characters on Terminal
# phrase with "'":
camb "a stone's throw" | camb a stone\'s throw
# phrase with "/":
camb "have your/its moments" | camb have your\/its moments
Command l
For listing and deleting items from the cache.
camb l # list all words/phrases in alphabetical order
camb l -t # list all words/phrases in reverse chronological order
camb l -r # list 20 words/phrases at random
camb l -d # delete one or more words/phrases from the cache, separated by ', '
Command wod
For displaying 'Word of the Day' in the Merriam Webster Dictionary
camb wod # list today's Word of the Day from Merriam-Webster Dictionary
camb wod -l # list all words of the day
General options
camb -h, --help # show this help message and exit
camb -v, --version # print the current version of the program
Metadata
Release files for cambridge 3.14.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cambridge-3.14.1.tar.gz | 639.3 kB | Without provenance | Details for cambridge-3.14.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cambridge-3.14.1-py3-none-any.whl | Python 3 | none | any | Details for cambridge-3.14.1-py3-none-any.whl |
Total release size: 679.8 kB
Release files / cambridge-3.14.1.tar.gz
| Download URL | cambridge-3.14.1.tar.gz |
|---|---|
| Size | 639.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dfc4a68b05e977c28c9f951a56606e86a42ae45cb02ba85d3483d396ba872def
|
|
BLAKE2b-256 checksum How to use checksums |
6e45b5e747c43e766b5715b8116a9b833943ffecbd335865d0cf562febac26b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.4
|
Release files / cambridge-3.14.1-py3-none-any.whl
| Download URL | cambridge-3.14.1-py3-none-any.whl |
|---|---|
| Size | 40.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
615afaef72e6540ce7d620016ddafde084f6970b80304f63133e64c0471dd712
|
|
BLAKE2b-256 checksum How to use checksums |
fb9f92f9c565baceff22264d469564d52c5e423a17cc3dea939dad2ce6f51eef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.4
|
Security for cambridge 3.14.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.