skip to navigation
skip to content

Not Logged In

drawsomething 0.1.0

Drawsomething word guess helper.

Help you guess drawsomething words by brute force all permutations.

Depends

  • pyenchant
  • google-translate

Install Guide

Take OS X for example.

Drawsomething depends on enchant to do spell checking.

As pyenchant is only a python binding for enchant, we need to install enchant first. And we also need to install aspell with en dict because enchant use aspell as backend.

$ brew install aspell --lang=en
$ brew install enchant
$ pip install pyenchant google-translate

Usage

One line script to generate all possible words:

>>> import drawsomething
>>> drawsomething.get_words('esttxyz', 4)
['ttys', 'sexy', 'yest', 'text', 'sett', 'zest', 'stet', 'test']

To list words with translations:

>>> import drawsomething
>>> words = drawsomething.get_words('esttxyz', 4)
>>> for w in words:
>>>     trans = drawsomething.translate(w, 'zh_cn').lower()
>>>     print w, trans

The drawsth is a cli script to list all possible words:

$ drawsth -l 4 -c esttxyz
ttys
sexy
yest
text
sett
zest
stet
test
 
File Type Py Version Uploaded on Size
drawsomething-0.1.0.tar.gz (md5) Source 2012-08-29 2KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 44 downloads in the last week
  • 164 downloads in the last month
  • Author: Lx Yu
  • Home Page: https://github.com/lxyu/drawsomething
  • License:
    Copyright (c) 2012, Lx Yu
    
    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted, provided that the above
    copyright notice and this permission notice appear in all copies.
    
    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
    WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
    MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
    ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
    WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
    ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
    OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  • Package Index Owner: lxyu
  • DOAP record: drawsomething-0.1.0.xml