Word Cookies helper/solver/answers
Project description
Word Cookies
Word Cookies helper
Usage
Library
Install the package then
from wordcookies import game
from pprint import pprint
word = "word"
chars = game.clean(word)
answers = game.get_possible_answers(chars)
g = game.group(answers)
pprint(g, width=120)
"""
{2: ['do', 'dr', 'dw', 'od', 'or', 'ow', 'rd', 'ro', 'rw', 'wd', 'wo', 'wr'],
3: ['dor', 'dow', 'ord', 'owd', 'owr', 'rod', 'row', 'rwd', 'wod', 'wro'],
4: ['drow', 'word']}
"""
CLI
Install the package then
python -m wordcookies cli
python -m wordcookies cli --word="word"
python -m wordcookies cli --word="word" --exit
Installation
pip install wordcookies
# or
git clone https://github.com/jojoee/wordcookies
cd wordcookies
python setup.py install
Features
- [demo] Add cli demo gif
- [demo] Add web demo gif
- [ci] setup continuous integration
- [cd] setup continuous delivery
- [pypi] Deploy to https://pypi.org/project/wordcookies/
- [test] Add more test
- [cli] add Usage section
Development
conda -V
conda deactivate
conda remove --name wordcookies --all
conda create --name wordcookies python=3.7.5
conda activate wordcookies
python -V
pip list
# dev
pip install -r requirements.txt
PYTHONPATH="$PWD" python wordcookies/cli.py
pip freeze > requirements.txt
# test
conda remove --name wordcookies_test --all
conda create --name wordcookies_test python=3.7.5
conda activate wordcookies_test
pip install -r requirements.txt
python -m flake8 --ignore=E501 wordcookies tests
python -m pytest tests --cov=./ --cov-report=xml
pip install .
python -m wordcookies cli
python -m wordcookies cli --word="word"
python -m wordcookies cli --word="word" --exit
# test pypi
pip install twine # package for publishing
python setup.py sdist bdist_wheel # build the package
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
wordcookies-1.0.0.tar.gz
(4.6 kB
view details)