Drawsomething
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
Metadata
Release files for drawsomething 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| drawsomething-0.1.0.tar.gz | 2.4 kB | Without provenance | Details |
Release files / drawsomething-0.1.0.tar.gz
| Download URL | drawsomething-0.1.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
524b69a339ddadaa9e4d87524faee52b6824f864f35b61c97eb3bccc2e73b967
|
|
BLAKE2b-256 checksum How to use checksums |
7ad37e8b28970bb1d6518ab3cf5e29c24fbba394fc0fdc4d83ac99d34616a515
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for drawsomething 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.