A command line interface for Thesaurus.com
Project description
# Thesaurus-cli
Ever had to search for that ~~perfect~~ ~~splendid~~ cromulent word? Faster and easier than a browser,
this CLI is unquestionably, unconditionally, the superlative solution.
## Getting Started
### Prerequisites
Python 3 and BeautifulSoup must be installed. They can be installed as follows:
```
apt-get install python3
pip install beautifulsoup4
```
### Installing
Distribution through pip will be added shortly. For now, since the entire script is self-contained
and quite small, just download the thesaurus-cli repo and copy the script to a directory on your PATH.
I have my installation in my ~/bin/ directory.
```
git clone https://github.com/davidgu/thesaurus-cli.git
cd thesaurus-cli
mv thesaurus ~/bin/
```
### Using
Thesaurus-cli takes a single argument, the word that is being searched. For example, to find synonyms
for "well"
```
./thesaurus-cli well
```
You will be able to select a specific definition for the searched word
```
Definitions for well are the following:
0) healthy
1) lucky, fortunate
2) happily, pleasantly; capably
3) sufficiently
4) water hole
Select a definition:
```
After choosing one, you will receive a list of synonyms
```
Synonyms for healthy:
strong
together
...
```
Ever had to search for that ~~perfect~~ ~~splendid~~ cromulent word? Faster and easier than a browser,
this CLI is unquestionably, unconditionally, the superlative solution.
## Getting Started
### Prerequisites
Python 3 and BeautifulSoup must be installed. They can be installed as follows:
```
apt-get install python3
pip install beautifulsoup4
```
### Installing
Distribution through pip will be added shortly. For now, since the entire script is self-contained
and quite small, just download the thesaurus-cli repo and copy the script to a directory on your PATH.
I have my installation in my ~/bin/ directory.
```
git clone https://github.com/davidgu/thesaurus-cli.git
cd thesaurus-cli
mv thesaurus ~/bin/
```
### Using
Thesaurus-cli takes a single argument, the word that is being searched. For example, to find synonyms
for "well"
```
./thesaurus-cli well
```
You will be able to select a specific definition for the searched word
```
Definitions for well are the following:
0) healthy
1) lucky, fortunate
2) happily, pleasantly; capably
3) sufficiently
4) water hole
Select a definition:
```
After choosing one, you will receive a list of synonyms
```
Synonyms for healthy:
strong
together
...
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
thesaurus-cli-1.0.0.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for thesaurus_cli-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e280e821bd57092a9edecd7ac64cb74a93f56335669d7aa3f73d68f10c63ab70 |
|
MD5 | a6bb185a43c366823243a46e801cd5ea |
|
BLAKE2b-256 | d5f7134aad54e6a6b4fe5cf35309b45c2696540f4612d7061472ab242bb3e0b6 |