Skip to content

v0.4.0

Latest

Choose a tag to compare

@ptrus ptrus released this 31 Aug 17:05
· 1 commit to master since this release
b0acc04

First release since 2020. Requires Python 3.9+.

New features

  • Online construction (Ukkonen's algorithm, completing a long-standing TODO): STree(online=True) + append() — feed text incrementally (str or bytes, any chunking) and query the tree between appends (#24)
  • lcsm(): returns all longest common substrings when several are tied for maximal length (supersedes #18)
  • Bytes input: build from bytes/lists of bytes and query with bytes (supersedes #22)

Changes

  • find_all() returns an empty set() on a miss (previously an inconsistent empty dict)
  • Full type hints throughout

Tooling

  • Packaging moved to pyproject.toml with the uv build backend (the old setup.py was broken)
  • CI tests Python 3.9–3.14; lint with ruff; hypothesis property tests cross-verifying both construction algorithms
  • Releases publish to PyPI via trusted publishing on version tags