Python wrapper of a C GADDAG implementation
Project description
GADDAG is a Python wrapper around a C implementation of a GADDAG.
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 ASCII characters.
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.2.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for GADDAG-0.2-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 161ca76902349182c5b05f4298b942181b644eb07c31dc16af86a3aefdfb163d |
|
MD5 | 7d2a89cbf38966644a197fd0bfb6aec6 |
|
BLAKE2b-256 | f0553895dcda291e4f6ef5cd2fcd0cd0e0fadd6176913ea58d03564ff05d722b |