A small package for building word chains
Project description
Word Chain
A package to build word chains from a given list of words.
Installation
pip install python-wordchain
Sample Usage
from wordchain.wordchain import WordChainer
WORD_LIST = ["bird", "bind", "bord", "bond", "bend", "bing", "bong", "sing", "song"]
chainer = WordChainer(word_list=WORD_LIST)
chainer.get_chains('bird', 'song')
This yields:
[('bird', 'bord', 'bond', 'bong', 'song'),
('bird', 'bind', 'bing', 'sing', 'song'),
('bird', 'bind', 'bond', 'bong', 'song'),
('bird', 'bind', 'bing', 'bong', 'song')]
Testing
Running the test suite from repository root:
pylint -v tests/tests.py
Run tests using docker and tox:
docker run --rm $(docker build -q . -f Dockerfile.tox) tox
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
python-wordchain-0.3.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for python_wordchain-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1f366d8e17459e08d1912f63136494e380e4ae553409e5fb02c4fd1612e1bea |
|
MD5 | 5601333adc8b10a446cd4f1c629f9cfe |
|
BLAKE2b-256 | ffb0246102fd073f365731eabccc820003f6f01691692b50a6874f56435572d4 |