bindings: the libraries in process, for Python

This commit is contained in:
funkpower
2026-09-19 17:54:18 -04:00
parent a80f8a024d
commit cf126dddc3
12 changed files with 1205 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
"""The catena libraries, in process.
Every function here is the same code the command-line tool runs, and hands
back the same record shapes it writes to stdout — dictionaries rather than
lines of JSON.
>>> import catena
>>> chunks = catena.chunk_markdown(markdown, target=512)
>>> chunks[0]["page"]
41
"""
from ._catena import (
__version__,
chunk_markdown,
count_tokens,
fuse_hits,
identify,
pack_cues,
parse_subtitles,
scrub,
split_collection,
)
__all__ = [
"__version__",
"chunk_markdown",
"count_tokens",
"fuse_hits",
"identify",
"pack_cues",
"parse_subtitles",
"scrub",
"split_collection",
]