WordGoblin
WordGoblin is a simple, lightweight word finder package that returns words containing letters specified by the user. English is supported within the package, and custom dictionaries or lists of words can easily be loaded to work with other languages.
Installation and Usage
Install using pip:
pip3 install wordgoblin
WordGoblin takes as few as one argument or as many as three. If you only want to check the built-in English dictionary for words matching your letters, simply pass your letters as a string to the check_dict method:
from wordgoblin import goblin
goblin.check_dict('yourstringofletters')
To only return words containing a certain number of letters, use the same method by specify your number as a second argument:
goblin.check_dict('yourstringofletters', 3)
And to use a custom dictionary, simply provide the path of your JSON dictionary as a second argument (the dictionary should list the words as keys; their values don't matter). You can also (optionally) include the number of letters for your word matches:
goblin.check_dict('yourstringofletters', 'path_to_custom_dict.json')
# or, to only return 4 letter words:
goblin.check_dict('yourstringofletters', 'path_to_custom_dict.json', 4)
To use a custom list of words instead of a JSON dictionary, use the following (very similar) syntax:
goblin.check_list('yourstringofletters', your_custom_list)
# or, to only return 4 letter words:
goblin.check_list('yourstringofletters', your_custom_list, 4)
Release files for wordgoblin 1.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 | |
|---|---|---|---|
| wordgoblin-1.1.0.tar.gz | 1.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wordgoblin-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.4 MB
Release files / wordgoblin-1.1.0.tar.gz
| Download URL | wordgoblin-1.1.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e072774b6fc28b8843bc75d38842abd03f003b258c3d3322adee442b413595ce
|
|
BLAKE2b-256 checksum How to use checksums |
5058f08ebdaa9fbc80b74df4b0e819e83db0be6a24d08ee93e36ddf1c01c2260
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|
Release files / wordgoblin-1.1.0-py3-none-any.whl
| Download URL | wordgoblin-1.1.0-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e7e729fbd99ef7dc2db90b8a23dca7fe2864ae2eb08fc0b3ec7419b61901921
|
|
BLAKE2b-256 checksum How to use checksums |
070386365672a219975aa6d7908b1ce1d86b36d13d2dd136108754bc1f954769
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|