Skip to content

DocLayout v2.1.0

Choose a tag to compare

@pypi-ahmad pypi-ahmad released this 23 Sep 10:03

DocLayout 2.1.0 adds direct file conversion with selectable exports and GitHub installation through uv tool, uv pip, or pip.

Install

uv tool install "git+https://github.com/pypi-ahmad/DocLayout.git@v2.1.0"

For the browser workbench, install doclayout[gui] @ git+https://github.com/pypi-ahmad/DocLayout.git@v2.1.0 instead. Optional server and full extras add the HTTP API and document-format converters.

Set OPENAI_API_KEY and, for a custom compatible endpoint, OPENAI_BASE_URL. Then run:

doclayout input.pdf output --all
doclayout input.pdf output --markdown --html

The default is Markdown. Other flags select JSON, chunks, metadata, crops, annotated PDF, annotated PNGs, or a complete ZIP. Extraction runs once per selected page. Generated files with matching names are overwritten; use separate output directories to retain multiple documents.

Manual cloning and existing folder conversion remain supported. See the README and usage guide for setup and options.

Verification

  • 130 offline tests passed; 3 billable integration tests skipped.
  • Wheel and source builds, isolated pip/uv pip/uv tool installation, CLI exports with mocked extraction, GUI startup, and API startup passed.
  • Runtime prompt files are unchanged. No live model calls were made for this release.

PyPI publication is deferred. Download the wheel or source archive below, or install from the GitHub tag.