Skip to main content

Word Cookies helper/solver/answers

Project description

Word Cookies

Word Cookies helper

continuous integration PyPI version fury.io License: MIT codecov

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


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)

Uploaded Source

Built Distribution

wordcookies-1.0.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file wordcookies-1.0.0.tar.gz.

File metadata

  • Download URL: wordcookies-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for wordcookies-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6d464e87ef195ce0473f7273470ff1b2d7c51b05b2c6df939c13cb7454bf3fcf
MD5 f0437cec2af97c16cf721cb41ca73139
BLAKE2b-256 b9bc86100cbb273d49306c54e38c004902c692871888ff28dd9e96bd8b5f017e

See more details on using hashes here.

File details

Details for the file wordcookies-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: wordcookies-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for wordcookies-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3b0366ed70672afa54a4b4ebace372ef9d7ad79338410053d272614af70920a
MD5 f3be36bc5a850423c76753e36422d007
BLAKE2b-256 b0ad056a5eb3601021699349e50d6865d8165d4671060341b67783c6f20eb266

See more details on using hashes here.

Supported by

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