Repository navigation
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 ofbytesand query with bytes (supersedes #22)
Changes
find_all()returns an emptyset()on a miss (previously an inconsistent emptydict)- Full type hints throughout
Tooling
- Packaging moved to
pyproject.tomlwith the uv build backend (the oldsetup.pywas 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