Little helper to play the Wordle game
Project description
Wordle
This package can help you playing playing the Wordle game.
Installation
The tool can easyly be insalled on a computer where a recent (>=3.10) version of Python is present.
python3 -m venv venv
. venv/bin/activate
pip install pywordle
Usage
All the command line options can be found with the --help
option.
$ wordle --help
usage: Propose words for the Wordle game. [-h] [--large] [--stats] [--none] [--unique] [--check] [--verbose] [--letters LETTERS] [--minfrequency MINFREQUENCY]
options:
-h, --help show this help message and exit
--large Uses the large file of english words.
--stats Displays some stats about the found words.
--none Use none of the previously used letters.
--unique Do not repeat letters in a word.
--check Check that the word is valid.
--verbose Print progress.
--letters LETTERS The set of letters to be used.
--minfrequency MINFREQUENCY
A minimum frequency for the proposed words, between 1 and 7.
Letters
The --letters
is useful to start the game with a word that is using the most common english letters to have the best chances to find letters of the solution word. It also could be a good idea to add the --unique
option to avoid repeating a letter. Adding the --check
will allow to check how often the words are used. This can be filtered with a --minfrequency
. And if you do not add too many letters, you can finally add --all
to see the full list of matching words.
wordle --letters=etaionshr --unique --check --minfrequency=3 --all
Using the Words API
In order to check the validity and frequency of the words with a call to the Words API, you need to store a valid Rapid API key in RAPIDAPI_KEY
environment variable. It is free for up to 2500 words per day. Once a word is checked, it is stored locally so it will not be checked again the next days.
export RAPIDAPI_KEY="{YourKey}"
wordle --check
Checking the words allows you to filter the proposed words by their frequency. The solution of the Wordle game tend to be a word with a high frequency.
wordle --check --minfrequency 5
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
Built Distribution
File details
Details for the file pywordle-0.2.2.tar.gz
.
File metadata
- Download URL: pywordle-0.2.2.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.11.0-1019-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b8b4df5961dc0fbba809b3968d2227ffd22e01afab036ad97469c6a8a20a5fb |
|
MD5 | 5d34218ae311a1e18a848c9f3090b13c |
|
BLAKE2b-256 | 17c717f37d43f5f1d1db92a706c895f46eae55342a91f8c1c55fe25e48e21f7c |
File details
Details for the file pywordle-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: pywordle-0.2.2-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.11.0-1019-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8396f582b3f74de912dd60abb666f08bbaf1cccf40e40277ccdf74199177b204 |
|
MD5 | eb820e06a2e124b27cc45ed4fa5cd50a |
|
BLAKE2b-256 | 69f3f80ea578a443eb3c0f2c05edf936961576780e310957efc885203c4d4020 |