Python wrapper of cGADDAG
Project description
GADDAG is a Python wrapper around cGADDAG.
A GADDAG data structure provides rapid word lookups for prefixes, suffixes and substrings, making it ideal for use in applications such as Scrabble move generation.
Basic usage:
>>> import gaddag >>> words = ["foo", "bar", "foobar", "baz"] >>> gdg = gaddag.GADDAG(words) >>> "foo" in gdg True >>> "bor" in gdg False >>> gdg.contains("ba") ['bar', 'foobar', 'baz']
GADDAG currently only supports the ASCII alphabet.
Installation
From PyPI:
pip install GADDAG
Documentation
Documentaion is available at http://gaddag.readthedocs.io.
License
Licensed under the MIT License, see LICENSE.
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
GADDAG-0.3.4.tar.gz
(24.0 kB
view hashes)
Built Distribution
Close
Hashes for GADDAG-0.3.4-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 035c89ce454606e4c2ecc357f316a416c3462193272e62a2a045c4419ef469ff |
|
MD5 | c0d4bbb44bd900d2263b608bc333c352 |
|
BLAKE2b-256 | f3b3ea21c2757a04fb2402533b347d91d7067cca6521b5b967be38db762a8a8e |