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.1.tar.gz
(18.8 kB
view hashes)
Built Distribution
Close
Hashes for GADDAG-0.3.1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22bdc295613e68d240d93b7c6a3cebd974b09a5d53bff08b426d2256463bd176 |
|
MD5 | 863296c21decb87765e8979c8bf798e9 |
|
BLAKE2b-256 | 48f0fc62d5b678b4f0f6cf5148301cbc505d0c859449ff09d026ae5347471390 |