A simple CLI program that highlights rhymes in a given text
Project description
rhymepy
A simple CLI program that highlights rhymes in a given text, using either the Datamuse API or the pronouncing module.
Usage
usage: rhymepy [-h] [-l N | -a] [-p | -d {0,1,2}] file
required arguments:
file a txt file
optional arguments:
-h, --help show this help message and exit
-l N, --lines N number of lines to match rhymes (default: 2)
-a, --all-lines match all lines
-s, --stanzas match each stanza
backends:
-p, --pronouncing use pronouncing as the backend for fetching rhymes
-d {0,1,2}, --datamuse {0,1,2}
use datamuse as the backend for fetching rhymes. 0: match perfect rhymes. 1: match approximate rhymes. 2: match both
Example
Poem by voodooattack.
Installation
Using pip
$ pip install rhymepy
Cloning the repository
$ git clone https://github.com/dimeritium-foil/rhymepy
$ cd rhymepy
$ python setup.py install
Dependencies
- requests
- pronouncing (optional)
- colored
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
rhymepy-0.1.0.tar.gz
(6.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rhymepy-0.1.0-py3-none-any.whl
(20.0 kB
view details)
File details
Details for the file rhymepy-0.1.0.tar.gz.
File metadata
- Download URL: rhymepy-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfb93a882b663e559dc67748d60ebcf9feb06a0e0584ed4db6e2793a19aad140
|
|
| MD5 |
81e1872d8d71a495731a23e29689cb19
|
|
| BLAKE2b-256 |
7f550e7d9f0466642c875347e0d5f9b14ba382502e75ce466ae9efbca370a3d9
|
File details
Details for the file rhymepy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rhymepy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4791942df6e8853c9d33102dce56b97652fddb5bdad64d84e06e9ee976adebb
|
|
| MD5 |
fb4bfa60c6a4f95896ee0cabf078c94c
|
|
| BLAKE2b-256 |
a5a288baeacfafec90e4f5583510637493e00736c24ea1372e96b83a4e361755
|