Skip to main content

Cambridge dictionary cli app

Project description

Cambd

Cambridge dictionary cli app

cambd, Cambridge dictionary cli app

Features

  • Automatically suggests related words when a typo is detected.
  • Provides an interactive suggestion menu for selecting the correct word in case of a typo.
  • Supports past and past participle forms, returning the definition of the root word.
  • Operates without relying on any external APIs or databases.
  • Implements persistent caching to store previously searched words, ensuring faster results. The cache is maintained using Python's built-in sqlite3.

Install

pip install cambd

Usage

Usage: cambd [OPTIONS] WORD

Options:
  -a, --show-all         Show all the definitions of a word.
  -d, --dictionary TEXT  Determine which dictionary region to use (uk, us) [default: uk]
  -v, --verbose          Show extra word info ie, word codes & labels. [ex: A2 informal]
  -c, --clear-cache      Clear all the stored cache from system.
  --version              Show the version and exit.
  --help                 Show this message and exit.

FAQ

Q. Why scrape instead of using a Dictionary API?

[!NOTE] TBH, As a non native english speaker, I find the cambridge dictionary the most easy to understand. But they don't have any public free API with all the features I want like getting suggestions on misspelled words and give both US and UK definations etc. So I ended up building this cli tool with basic scrapping for my own usecase as I am a terminal power user and don't want to leave the terminal, go to browser, open a new tab just to search for a word meaning.

LICENSE

MIT License © Rocktim Saikia 2024

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cambd-1.0.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

cambd-1.0.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file cambd-1.0.2.tar.gz.

File metadata

  • Download URL: cambd-1.0.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for cambd-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5ef44ab6935a7e652d13cf09cec96bbc558e3e2bb6a1b741ce6b68931d1f4d9c
MD5 854df98ca5ed46dd73c2e376e501f9f3
BLAKE2b-256 27884e5e38be13dab1f710aaff27c78fab9a81486739124556192a0766757620

See more details on using hashes here.

File details

Details for the file cambd-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: cambd-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for cambd-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2204a54c1fa2a6c06c6baeaa33cc73f0bb9b2514eb82d7ea2b187e7a31090533
MD5 dd944126eb6b4229db84331d417aa5be
BLAKE2b-256 c335691371655cfac06e31cd210bb553fe7acab08006a367862e6a63b7bc5a3d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page