Skip to main content

Shabd

A command-line English dictionary tool for quick word lookups.

Features

  • Lookup English word meanings directly from your terminal
  • Works offline, with automatic background updates to its dictionary data
  • Understands inflected forms automatically (e.g. hike, hiking, hiked all resolve to the same entry, irregular forms included)
  • Simple and straightforward command-line interface

Installation

You can install Shabd from PyPI:

pip install shabd

Or install directly from the repository:

git clone https://github.com/spignelon/shabd.git
cd shabd
pip install .

Usage

Basic usage:

# Look up a single word
shabd apple

# Look up a phrase
shabd "machine learning"

Options:

# Display help
shabd --help

# Display version
shabd --version

How It Works

Shabd uses the Open English WordNet (OEWN) via the wn library as its dictionary source. On first use it downloads the data (~11MB download, ~100MB once indexed locally) into ~/.wn_data, then every lookup is served from there fully offline. It checks for a newer OEWN edition at most once every 30 days, never on every lookup.

Note: Shabd originally scraped Cambridge Dictionary, which worked for ~4 years, until Cambridge added Cloudflare bot-protection that blocks automated requests - so Shabd moved to this offline WordNet-based dictionary instead.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

This project is the continuation of the cambridge-dictionary project.

Metadata

Release files for shabd 2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shabd 2.1
File Size Uploaded Provenance
shabd-2.1.tar.gz 17.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for shabd 2.1
File Interpreter ABI Platform
shabd-2.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.1 kB

Release files / shabd-2.1.tar.gz

Download URL shabd-2.1.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bd177f7330aa09352aa96f1f2c0ecddf4f2b89a022c831daefedac8cb247c154
BLAKE2b-256 checksum
How to use checksums
1afc079a3e11bd6b4981fe0372c2b26bb4481cee4cff0453b15aadabec0f4880
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Release files / shabd-2.1-py3-none-any.whl

Download URL shabd-2.1-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
365a01871c8dc3ce86916f20319cfc8a47efca2a32f15fed8ac270b2c8e76875
BLAKE2b-256 checksum
How to use checksums
ba2a6bcf8b9e0b55ccc718ecde3281b38397e48eb7f3446df762ad960703dfb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Security for shabd 2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page