{"id":22837433,"url":"https://github.com/hubtou/anagram","last_synced_at":"2026-05-11T03:18:31.341Z","repository":{"id":57453813,"uuid":"399248476","full_name":"HubTou/anagram","owner":"HubTou","description":"Rearrange letters to form new words","archived":false,"fork":false,"pushed_at":"2021-09-26T07:40:05.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T21:48:46.924Z","etag":null,"topics":["command-line-tool","game","learning-python","learning-unix","pnu-project","python","shell","tool","unix","utility","words","wordscapes"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HubTou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-23T21:09:22.000Z","updated_at":"2021-09-26T07:38:42.000Z","dependencies_parsed_at":"2022-08-29T06:51:41.932Z","dependency_job_id":null,"html_url":"https://github.com/HubTou/anagram","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubTou%2Fanagram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubTou%2Fanagram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubTou%2Fanagram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubTou%2Fanagram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HubTou","download_url":"https://codeload.github.com/HubTou/anagram/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413102,"owners_count":20773050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line-tool","game","learning-python","learning-unix","pnu-project","python","shell","tool","unix","utility","words","wordscapes"],"created_at":"2024-12-12T23:16:50.749Z","updated_at":"2026-05-11T03:18:31.278Z","avatar_url":"https://github.com/HubTou.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installation\npip install [pnu-anagram](https://pypi.org/project/pnu-anagram/)\n\n# ANAGRAM(6)\n\n## NAME\nanagram - rearrange letters to form new words\n\n## SYNOPSIS\n**anagram**\n\\[-d|--dictionary pathname\\]\n\\[-f|--files\\]\n\\[-l|--length numbers\\]\n\\[--debug\\]\n\\[--help|-?\\]\n\\[--version\\]\n\\[--\\]\n\\[letters\\]\n\n## DESCRIPTION\nThe **anagram** utility rearranges the given *letters* to form as many words (anagrams) as possible.\n\nStandard input is read if no letters are provided on the command line.\n\nThe *-l|--length* option can be used to form words of selected size with the letters provided.\n\nThe *-f|--files* option can help you select a dictionary.\n\n### OPTIONS\nOptions | Use\n------- | ---\n-d\\--dictionary pathname|Use this dictionary pathname if you don't want the default dictionary\n-f\\|--files|Print possible dictionary files in the DICTPATH\n-l\\|--length numbers|Specify anagrams lengths if you want intermediate sizes. *numbers* is a number or a comma separated list of numbers or dash separated number intervals\n--debug|Enable debug mode\n--help\\|-?|Print usage and a short help message and exit\n--version|Print version and exit\n--|Options processing terminator\n\n## ENVIRONMENT\nThe ANAGRAM_DEBUG environment variable can also be set to any value to enable debug mode.\n\nThe DICTPATH environment variable is the search path for the dictionary files.\nIt is a colon-separated list of directories in which **anagram** looks for a *words* dictionary file.\nIf not set it will default to /usr/share/dict:/usr/local/share/dict.\nUnder a Posix system, $HOME/.local/share/dict will also be added to the default,\nwhile %HOMEPATH%/appdata/roaming/python/share/dict:%HOMEPATH%/appdata/local/programs/python/pythonXX/share/dict will be added under a Windows system.\n\nThe ANAGRAM_DICT environment variable provides a way to avoid specifying an alternate directory on each command line.\n\n## FILES\n*/usr/share/dict/words* is the default (English) dictionary on a BSD operating system.\n\nSome French dictionaries are also installed as a dependency.\n\n## EXIT STATUS\nThe **anagram** utility exits 0 on success, and \u003e0 if an error occurs.\n\n## EXAMPLES\nTo solve a Wordscapes (French) level where the available letters are ABCDEFG, I use a command like:\n```Shell\n$ export ANAGRAM_DICT=/usr/local/share/dict/dict-fr-Wordscapes\n$ anagram -l 3-7 abcdefg\n```\n\nOther dictionaries are also available. For example:\n```Shell\n$ export ANAGRAM_DICT=/usr/local/share/dict/dict-fr-ABU-mots_communs.ascii\n$ export ANAGRAM_DICT=/usr/local/share/dict/dict-fr-AU-DELA-common-words.ascii\n```\n\n## SEE ALSO\n[grep(1)](https://www.freebsd.org/cgi/man.cgi?query=grep)\n\n## STANDARDS\nThe **anagram** utility is not a standard UNIX command.\n\nThis utility tries to follow the [PEP 8](https://www.python.org/dev/peps/pep-0008/) style guide for [Python](https://www.python.org/) code.\n\n## PORTABILITY\nTested OK under Windows.\n\n## HISTORY\nThis utility was made for the [PNU project](https://github.com/HubTou/PNU)\nin order to help my wife play\n[Wordscapes](https://play.google.com/store/apps/details?id=com.peoplefun.wordcross)\nwhen she was stuck on a level.\n\n## LICENSE\nIt is available under the [3-clause BSD license](https://opensource.org/licenses/BSD-3-Clause).\n\n## AUTHORS\n[Hubert Tournier](https://github.com/HubTou)\n\n## CAVEATS\nAn English dictionary should be packaged for operating systems that are not providing one.\n\nSearching only for a *words* link to one of the directories in the DICTPATH is too limitated.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubtou%2Fanagram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhubtou%2Fanagram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubtou%2Fanagram/lists"}