Skip to main content
https://img.shields.io/pypi/v/tinysa.svg https://img.shields.io/travis/jun-harashima/tinysa.svg

tinysa is a minimal implementation for constructing a suffix array.

Quick Start

To install tinysa, run this command in your terminal:

$ pip install tinysa

Using tinysa, you can construct a suffix array as follows:

from tinysa.tinysa import TinySA

suffix_array = TinySA()
suffix_array.index('banana')

Then, you can find a suffix that begins with a substring as follows:

position = suffix_array.search('ana')
print(position)  # => 1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tinysa-0.2.2.tar.gz (8.2 kB view details)

Uploaded Source

File details

Details for the file tinysa-0.2.2.tar.gz.

File metadata

  • Download URL: tinysa-0.2.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/24.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.1

File hashes

Hashes for tinysa-0.2.2.tar.gz
Algorithm Hash digest
SHA256 31cc53f535da08641d8a9d67fb8a32b0b8f60fab3b954af1feb569625bf3c752
MD5 53b8c0d1498d2cadc7120758cd56a2b1
BLAKE2b-256 1ded98c4c2b0f5a857de017073569764a684b01a73a8a645c704bfc9d3ea1d44

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 file

0.2.1

1 file

0.2.0

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page