Skip to main content

tors-documents

The tors.documents payload wheel: document-format extraction to GitHub-Flavored Markdown or plain text, GIL-free. PDF, the office and text formats (doc/docx, xls/xlsx, ppt/pptx, rtf, odt/ods/odp, epub, csv/tsv), and HTML, converted on the engine measured best for each family (pdf_oxide for PDF, anydoc for the office/text families, html-to-markdown-rs for HTML, office_oxide as the caller-selectable backend="oxide" lane). The whole read + sniff + convert pass runs under one py.detach, so the GIL stays free for the rest of your program while a large document converts.

Install

pip install tors[documents]

or this wheel directly:

pip install tors-documents

The base tors wheel ships no engines at all; this payload is what pip install tors[documents] pulls in. The split is the lazy-import design too: import tors never touches this wheel, and import tors.documents peaks under 19 MB in a fresh process despite all four engines compiled into the one payload .so (demand paging). The measured import-cost numbers are in the tors.documents section of the full API reference (linked below).

Import path

import tors.documents

The base wheel re-exports this payload as tors.documents, with an install hint pointing at the extra when this wheel is absent, so that spelling is the surface to target. tors_documents is the distribution name, not the API.

Version lockstep with tors

This wheel carries the same version number as the base tors wheel, and the two release together (one release PR bumps both manifests; see the repository's release-please-config.json). The tors[documents] extra resolves this wheel; the matching versions install side by side.

Documentation

  • Documents: what the surface is, the engine table, and why the split into two wheels
  • The full API reference: to_markdown/to_text/html_title/html_extract/sniff/pdf_extract/pdf_page_count/pdf_page_labels/pdf_security/pdf_classify/pdf_link_uris/page_geometry/page_layout/page_tables, the Backend/Format/PageKind enums, PdfClassification, PdfSecurity, PdfPermissions, PageGeometry, PageLayout, TextSpan, TextLine, ImageBox, NeedsOcrError, HtmlExtractResult, and tors.documents.aio

Metadata

Release files for tors-documents 0.19.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for tors-documents 0.19.1
File Actions
tors_documents-0.19.1-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details for tors_documents-0.19.1-cp310-abi3-win_arm64.whl
tors_documents-0.19.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for tors_documents-0.19.1-cp310-abi3-win_amd64.whl
tors_documents-0.19.1-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for tors_documents-0.19.1-cp310-abi3-musllinux_1_2_x86_64.whl
tors_documents-0.19.1-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for tors_documents-0.19.1-cp310-abi3-musllinux_1_2_aarch64.whl
tors_documents-0.19.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for tors_documents-0.19.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
tors_documents-0.19.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for tors_documents-0.19.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
tors_documents-0.19.1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for tors_documents-0.19.1-cp310-abi3-macosx_11_0_arm64.whl
tors_documents-0.19.1-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for tors_documents-0.19.1-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 127.5 MB

Release files / tors_documents-0.19.1-cp310-abi3-win_arm64.whl

Download URL tors_documents-0.19.1-cp310-abi3-win_arm64.whl
Size 15.7 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
caa5cb2b54f3751b3b298e8e5e209a213c8f10fed3af4e612ae8a55a957cba96
BLAKE2b-256 checksum
How to use checksums
2169be92de4bf3c19f898b73caffdd2e3f47a83773430386d1fa063849da801b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tors_documents-0.19.1-cp310-abi3-win_amd64.whl

Download URL tors_documents-0.19.1-cp310-abi3-win_amd64.whl
Size 16.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
85964a6d594e40bee3bc8012c0a3e4bb8d82fca5c52b8c388960b9ab7e41d361
BLAKE2b-256 checksum
How to use checksums
32c8bc352bf12c729d9f7390da3451128f9a5a247f1ac259dbb924fe6f4efd65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tors_documents-0.19.1-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tors_documents-0.19.1-cp310-abi3-musllinux_1_2_x86_64.whl
Size 16.7 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
e41546dfd8191da4376a5ba4dcd7560c659639bab1fdaa7d49e4753ac8db7a28
BLAKE2b-256 checksum
How to use checksums
4c762b75b4ba14b0af53fe9392f64e70ecfc56284d0922222f2beef0759a46f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tors_documents-0.19.1-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL tors_documents-0.19.1-cp310-abi3-musllinux_1_2_aarch64.whl
Size 15.7 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
781d75dff8be19e8cbfeb0847a10b74b2a9b3eb61f03a9cea1b4658089cafcf8
BLAKE2b-256 checksum
How to use checksums
535653680d16fed3171656a75813096cf5986b1a2dd4fa08b4b824c47a52be29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tors_documents-0.19.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL tors_documents-0.19.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 16.4 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
7ca86219650fb827d904c96067e6b3aabdea1032bba64ab3a694663a38d0efac
BLAKE2b-256 checksum
How to use checksums
54a007502564fe2768a4d0fe867030d8da6955fc62e4af2ec2237bded12b1299
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tors_documents-0.19.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL tors_documents-0.19.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 15.5 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
40d5abc6c2aeb48c534da1ae2034e01c63109e80ab5d9722d316322c638353ce
BLAKE2b-256 checksum
How to use checksums
5d339d495e09c29704943957331d318b7e9f88303336d8d8cd3dfda64497dd05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tors_documents-0.19.1-cp310-abi3-macosx_11_0_arm64.whl

Download URL tors_documents-0.19.1-cp310-abi3-macosx_11_0_arm64.whl
Size 15.1 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1297f8a468b618e2163c7001960d0bb2bd2fd874c10982e6ddd9920790df85c6
BLAKE2b-256 checksum
How to use checksums
4c552bb4e075a1d2a100726ff69c2fbd29e910f326bd76f147afa89976aefdf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tors_documents-0.19.1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL tors_documents-0.19.1-cp310-abi3-macosx_10_12_x86_64.whl
Size 15.8 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
4ce6e438b6bdf40b6b8b9c2953ed402d1b19c3dd5755efc6c7b088a52f60e369
BLAKE2b-256 checksum
How to use checksums
1aaae14f633234abfe065224318f405949cb6ef48fca61130487ce390f8639d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for tors-documents 0.19.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page