Skip to main content

Command line tool to generate fun to play word searches.

Project description

py-wordsearch-gen - Word Search Generator

Ruff Tests Mastodon Follow

py-wordsearch-gen is a word search generator, originally written to generate a word search for distribution at the PSF booth at PyCon US 2025. It is incredibly simple to use and will generate a new word search with every run.

Installation

Installation is easy:

pip install py-wordsearch-gen

Usage

To use just run wordsearch from the command line.

usage: wordsearch.py [-h] [-w [WIDTH]] [-t [HEIGHT]] [-m [MIN_WORD]] [-d] [-r] [-k] [-x [EXCLUDED_LETTERS]] words [words ...]

Word Search Generator

positional arguments:
  words                 List of words for the search.

options:
  -h, --help            show this help message and exit
  -w, --width [WIDTH]   Width of puzzle, (Default: 10)
  -t, --height [HEIGHT]
                        Height of puzzle, If not set will be the same as the width (square puzzle.)
  -m, --min [MIN_WORD]  The minimum word length. Cannot be larger than the size of the grid. (Default: 4)
  -d, --diagonal        Allow words to be placed diagonally.
  -r, --reverse         Allow words to be placed backwards.
  -k, --answer-key      Print the answer key ahead of the puzzle.
  -x, --exclude [EXCLUDED_LETTERS]
                        A list of letters to be excluded as fill. Defaults to 'JQXZ'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_wordsearch_gen-2025.7.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_wordsearch_gen-2025.7.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file py_wordsearch_gen-2025.7.2.tar.gz.

File metadata

  • Download URL: py_wordsearch_gen-2025.7.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for py_wordsearch_gen-2025.7.2.tar.gz
Algorithm Hash digest
SHA256 8a256caf0642bfd2b2f81bbffab1dcb59607029bacb83c82083bf2426e4a49c0
MD5 6ac8fb68be97575bdbce281df8f36cf5
BLAKE2b-256 b857c40cb2467e2f517792c23e965996af6350cc96b68afa10999f17edce78c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_wordsearch_gen-2025.7.2.tar.gz:

Publisher: publish.yml on brass75/wordsearch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_wordsearch_gen-2025.7.2-py3-none-any.whl.

File metadata

File hashes

Hashes for py_wordsearch_gen-2025.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d362202afc3a3b9476ccd5701461744a6674bc365ced9be2dd4e0c77624ed605
MD5 0131e64fb2e1775a14295ccba6ff23fd
BLAKE2b-256 8664febc837534cd056769624e8b1c1aae26ca542b20083112c9cb389a691318

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_wordsearch_gen-2025.7.2-py3-none-any.whl:

Publisher: publish.yml on brass75/wordsearch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page