mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-10-23 03:07:13 +00:00
bindings: the libraries in process, for Python
This commit is contained in:
@@ -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",
|
||||
]
|
||||
Reference in New Issue
Block a user