Python 3+ version scrabble word finder! Super efficient with hashtables!
Project description
Python super efficient word scramble finder
word scramble is a python package that looks for all possibilities given a scrambled word.
Installation
If not already, install pip
Install the package with pip or pip3:
pip install word-scramble
Usage
from wsfinder import main
# Need to provide the language
finder = main.Finder("english")
scrambled_words = [
"taurdesta",
"achwt",
"ilane",
"alger",
]
res = {word:finder.find(word) for word in scrambled_words}
print(res)
Output:
{
'taurdesta': ['saturated'],
'achwt': ['watch'],
'ilane': ['liane', 'laine', 'elian', 'anile', 'aline', 'alien'],'alger': ['regal', 'large', 'lager', 'glare', 'elgar', 'argle'],
}
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
word-scramble-1.1.0.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file word-scramble-1.1.0.tar.gz.
File metadata
- Download URL: word-scramble-1.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0d93771bb93a414238d2c2f6af228daa9c4954012cbdbde4acbe1084e482b7e
|
|
| MD5 |
d1adb293533a32b7a91ae8401b4d217e
|
|
| BLAKE2b-256 |
d9604d9be6fb3bb8cb2452026490363c2488e136db5a71df9ed23cdcbd39c592
|
File details
Details for the file word_scramble-1.1.0-py3-none-any.whl.
File metadata
- Download URL: word_scramble-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a06ffff78b464203579d5218403b3cfffb420494ef315a696aab7355a23c8ef3
|
|
| MD5 |
0e7365584bf514ca9ea5c615cfd65e1f
|
|
| BLAKE2b-256 |
548f8328c2f7111f2466a4bc9fbadd135fba99571564350ab7579bc7e75ee0b6
|