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"): {'baz', 'bar', 'foobar'}
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.1.3.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for GADDAG-0.1.3-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb27da7ab4e9e6ae642dae2a74c806f4ab494c5acdefd77e564922a5bd631e8e |
|
MD5 | f4841b45688d0740101f9fde20a79e09 |
|
BLAKE2b-256 | 4b615fff62a327ac8b4171801e99148e1ac784815da9526a971c26e913d0b467 |