Skip to main content

Look up words in the Garner Usage Dictionary from the command-line.

Project description

Basic installation

If you want to use this tool, just install it through pipx:

pipx install garner-dict

Then read the help instructions with garner -h.

The basic usage is garner WORD to see the usage for WORD, or garner -s WORD to search for WORD. The search is pretty generous.

If you want a paged result, pipe it through less.

You don't need to read anymore. The rest of this document is for developers.

Developer Notes

Clone this repo, obviously.

Start with basic python stuff:

python3 -m venv venv
./venv/bin/python -m pip install -r requirements.txt

All the definitions are stored in definitions/, but the tool doesn't use those directly. Instead it uses that to build an SQLite database, and then queries that. (We do this for speed and for searching).

So the first thing you need to do is build the DB.

./venv/bin/garner --build

Now you can use the tool like normal.

Tests

Run the tests with:

./venv/bin/python -m unittest discover -s tests

The tests use a small fixture dictionary in tests/fixtures/definitions instead of the full set of parsed definition files. They create a temporary SQLite database from those fixture entries and check the core lookup/search behavior against that tiny dictionary.

Licensing

The code in this repository is MIT licensed. See LICENSE.

The dictionary content and bundled definitions are copyrighted by Bryan A. Garner. See NOTICE.

Releases

Release prep is scripted:

./scripts/release 1.1.0

See RELEASING.md for the full release checklist.

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

garner_dict-0.1.2.tar.gz (4.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

garner_dict-0.1.2-py3-none-any.whl (4.9 MB view details)

Uploaded Python 3

File details

Details for the file garner_dict-0.1.2.tar.gz.

File metadata

  • Download URL: garner_dict-0.1.2.tar.gz
  • Upload date:
  • Size: 4.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for garner_dict-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0581cbf37a1c84ce3d1a04f65eaf6dcb99b5b53039d9e5be81fffda93d5f8dd3
MD5 4bbbccf927e15b38a3621570ea9fc105
BLAKE2b-256 229bc8634e92e729ca446dbf2730be4c478c7e7f19ad6b1ae419350159b3e939

See more details on using hashes here.

File details

Details for the file garner_dict-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: garner_dict-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for garner_dict-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 59b0f2260e884ec9555a89fd61f3be068afe01859398a8cf947c4a6fbdc2040e
MD5 835983327129eb862ce1a72520bda60b
BLAKE2b-256 a53387023e6dcaaca37f6eef2377a8943ff4319e13d64cdb5d59197b17e7c357

See more details on using hashes here.

Supported by

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