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
camband "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 lto 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 innocuous
camb <word/phrase> -v # search a word or phrase in verbose mode
camb l # list all words you've searched successfully in alphabetical order
camb l -t # list all words you've searched successfully in reverse chronological order
camb l -r # randomly list 20 words you've searched successfully
camb l -d # delete a word from the word list
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
Metadata
Release files for cambridge 1.1.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-1.1.1.tar.gz | 429.8 kB | Without provenance | Details for cambridge-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cambridge-1.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for cambridge-1.1.1-py2.py3-none-any.whl |
Total release size: 452.0 kB
Release files / cambridge-1.1.1.tar.gz
| Download URL | cambridge-1.1.1.tar.gz |
|---|---|
| Size | 429.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a30b0ed19955220717a55a14e51f378ad3c1bae4b75ff48403cd2e8db47b4d3b
|
|
BLAKE2b-256 checksum How to use checksums |
38034e6fed790366c954772ee956cc58b8f99192cda18e68c8497f1b572a708c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Release files / cambridge-1.1.1-py2.py3-none-any.whl
| Download URL | cambridge-1.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 22.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ec500152c2ec32752ea6a31bcd3c3aba7b8f31c067b74c26c217e6204c38075e
|
|
BLAKE2b-256 checksum How to use checksums |
8f83c0d9cc7af64064d9707fe16c1b3e54108610afe6f25b5de387ecc9fb0da7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Security for cambridge 1.1.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.