# Word Tree [![pipeline status](https://gitlab.com/OldIronHorse/word_tree/badges/master/pipeline.svg)](https://gitlab.com/OldIronHorse/word_tree/-/commits/master) [![coverage report](https://gitlab.com/OldIronHorse/word_tree/badges/master/coverage.svg)](https://gitlab.com/OldIronHorse/word_tree/-/commits/master)
Efficient lookup of next possible character(s) given a starting word fragment.
This is intended for use in word game strategies (Boggle, Scrabble, Anagram).
Usage:
```
>>> import word_tree
>>> with open('words.lst') as wl:
... wt = word_tree.make_word_tree([w.strip() for w in wl])
...
>>> word_tree.next_char(wt, 'do')
['c', 'e', 'd', 'g', 'i', 'm', 'l', 'o', 'n', 'p', 's', 'r', 'u', 't', 'w', 'v', 'z', None]
```
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/OldIronHorse/word_tree",
"name": "word-tree",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "dictionary,word,incremental,lookup",
"author": "Simon Redding",
"author_email": "s1m0n.r3dd1ng@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/b4/48/14d0b3e470c4f797722cfa80f58289bca9f018761aca9cbebf35d3526f34/word_tree-2.0.0.tar.gz",
"platform": null,
"description": "# Word Tree [![pipeline status](https://gitlab.com/OldIronHorse/word_tree/badges/master/pipeline.svg)](https://gitlab.com/OldIronHorse/word_tree/-/commits/master) [![coverage report](https://gitlab.com/OldIronHorse/word_tree/badges/master/coverage.svg)](https://gitlab.com/OldIronHorse/word_tree/-/commits/master)\n\n\nEfficient lookup of next possible character(s) given a starting word fragment.\n\nThis is intended for use in word game strategies (Boggle, Scrabble, Anagram).\n\nUsage:\n\n```\n>>> import word_tree\n>>> with open('words.lst') as wl:\n... wt = word_tree.make_word_tree([w.strip() for w in wl])\n...\n>>> word_tree.next_char(wt, 'do')\n['c', 'e', 'd', 'g', 'i', 'm', 'l', 'o', 'n', 'p', 's', 'r', 'u', 't', 'w', 'v', 'z', None]\n```\n",
"bugtrack_url": null,
"license": "GPL v3",
"summary": "A dictionary optimised for progressive lookup",
"version": "2.0.0",
"split_keywords": [
"dictionary",
"word",
"incremental",
"lookup"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3d24ea43d9348a86b3821daaa4365ac00e19c24d38f458e288e138d3b6993ff3",
"md5": "10f63de1c1345e9d856fe55f9fffe569",
"sha256": "db4c28ccafc6fb9444b4fede73bdbaf9e8273fde9851a0480d55ec6d4a17de0c"
},
"downloads": -1,
"filename": "word_tree-2.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "10f63de1c1345e9d856fe55f9fffe569",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 14860,
"upload_time": "2023-02-09T10:30:29",
"upload_time_iso_8601": "2023-02-09T10:30:29.173935Z",
"url": "https://files.pythonhosted.org/packages/3d/24/ea43d9348a86b3821daaa4365ac00e19c24d38f458e288e138d3b6993ff3/word_tree-2.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b44814d0b3e470c4f797722cfa80f58289bca9f018761aca9cbebf35d3526f34",
"md5": "45d44bdec335baa1efc0388b0292c57d",
"sha256": "a28eab09ee43547c5c126ede89cd9dc6752993071054904e7e2dfe05dff073d6"
},
"downloads": -1,
"filename": "word_tree-2.0.0.tar.gz",
"has_sig": false,
"md5_digest": "45d44bdec335baa1efc0388b0292c57d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 14736,
"upload_time": "2023-02-09T10:30:31",
"upload_time_iso_8601": "2023-02-09T10:30:31.986963Z",
"url": "https://files.pythonhosted.org/packages/b4/48/14d0b3e470c4f797722cfa80f58289bca9f018761aca9cbebf35d3526f34/word_tree-2.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-09 10:30:31",
"github": false,
"gitlab": true,
"bitbucket": false,
"gitlab_user": "OldIronHorse",
"gitlab_project": "word_tree",
"lcname": "word-tree"
}