Changelog
Every published release of DocSlicer, newest first. Versions follow semantic versioning: while DocSlicer is pre-1.0, minor versions may contain breaking changes — see Installation for how to pin.
0.2.0 — 25 July 2026
First public release on PyPI.
pip install docslicer==0.2.0Parsing
parse_document— one entry point for every supported format, auto-detected from the file extension and magic bytes.- Format-specific parsers —
parse_pdf,parse_docx,parse_pptx,parse_html— for when you know the format and want a mismatch to fail loudly. parse_allfor folders: yields(source, result)pairs and never aborts the batch on a single failure.DocumentParserfor reusing one configuration across many calls.
Structure
- Blocks — headings, paragraphs, and tables as atomic units, with bounding boxes and page numbers.
- Chunking — heading-aware grouping sized to an embedding model's context window, instead of a fixed character split.
- Hierarchy — the document's heading tree, for navigating by structure rather than by page.
- Tables in three representations: markdown, jsonl, and melted.
- Charts in DOCX and PPTX recovered as data rather than pixels — series, categories, values, and axis titles.
Packaging
- Python 3.10+, pure-Python wheel, no system dependencies for the base install.
- Optional extras:
html(Playwright rendering),llm(exacttiktokencounts),ocr,crypto(password-protected Office files), andparquet.
Watch releases on GitHub to be notified of new versions.