https://github.com/ehamiter/anagram
https://github.com/ehamiter/anagram
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ehamiter/anagram
- Owner: ehamiter
- Created: 2012-05-10T00:54:54.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2020-01-24T15:38:03.000Z (almost 6 years ago)
- Last Synced: 2025-03-25T13:39:45.542Z (10 months ago)
- Language: Python
- Size: 476 KB
- Stars: 6
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
anagram.py
==========
Anagram generator with several options to control the generated words
`usage: anagram.py [-h] -l LETTERS [-m MIN] [-s STARTS] [-e ENDS] [-r REQUIRED]`
mandatory agrument:
-l, --letters : Letters provided to generate an anagram
optional arguments:
-h, --help : show help message and exit
-m, --min : Minimum amount of letters in anagram
-s, --starts : Generates words starting with this letter
-e, --ends : Generates words ending with this letter
-r, --required : Generates words that must have this letter or letters
--limit : The maximum number of words you want to see (Default: unlimited)
-u, --unordered : Leave the output in alphabetical order
example:
$ python anagram.py -l reetyquiop -m 4 -s r -r q
reequip
requite
roquet
roque
anagram-repl.py
===============
Anagram generator that continues to run and allows for reuse
`usage: anagram-repl.py [-h] [-m MIN] [-u] [--limit LIMIT]`
Anagram generator that continues to run and allows for reuse
optional arguments:
-h, --help show this help message and exit
-m MIN, --min MIN Minimum amount of letters in anagram, can be overwritten
in the REPL
-u, --unordered Leave the output in alphabetical order
--limit LIMIT The maximum number of words you want to see
Once in the REPL you will be prompted repeatedly until you type `exit`
The input needs to be of the following format
`[-s STARTS] [-e ENDS] [-m MIN] letters [required]`
positional arguments:
letters Letters provided to generate an anagram
required Generates words that must have this letter or letters
optional arguments:
-s STARTS, --starts STARTS
Generates words starting with this letter
-e ENDS, --ends ENDS Generates words ending with this letter
-m MIN, --min MIN Minimum amount of letters in anagram
anagram-gui.py
==============
Anagram generator with a GUI for alternative input methods using easygui

Requires `easygui` which can be obtained from [http://easygui.sourceforge.net/download/index.html](http://easygui.sourceforge.net/download/index.html)