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.22.0

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.22.0
File Actions
tors_documents-0.22.0-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details for tors_documents-0.22.0-cp310-abi3-win_arm64.whl
tors_documents-0.22.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for tors_documents-0.22.0-cp310-abi3-win_amd64.whl
tors_documents-0.22.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for tors_documents-0.22.0-cp310-abi3-musllinux_1_2_x86_64.whl
tors_documents-0.22.0-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for tors_documents-0.22.0-cp310-abi3-musllinux_1_2_aarch64.whl
tors_documents-0.22.0-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.22.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
tors_documents-0.22.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for tors_documents-0.22.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
tors_documents-0.22.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for tors_documents-0.22.0-cp310-abi3-macosx_11_0_arm64.whl
tors_documents-0.22.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for tors_documents-0.22.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 127.6 MB

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

Download URL tors_documents-0.22.0-cp310-abi3-win_arm64.whl
Size 15.7 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
8377aaaacfb90dcd3de0e3102924123c3e615f0e5aa753b96b2e9b4b43b10170
BLAKE2b-256 checksum
How to use checksums
f568bd540d15a9efaeef737f7df8060bdcce92960d282a1fb0d7991858b396bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","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.22.0-cp310-abi3-win_amd64.whl

Download URL tors_documents-0.22.0-cp310-abi3-win_amd64.whl
Size 16.8 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
cabb2c042354c94addb046564a6a893ed4a926ac309ab96cfe6fd593c3d8fc26
BLAKE2b-256 checksum
How to use checksums
777c65776219b4c7feec3c33c7e4e07c4358b4aa4d3cab425b5da7754a74b346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","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.22.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tors_documents-0.22.0-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
74c60f6098e0a75d9d5b6fcaa6902e7f188dbcaee034412129ca8cb50180991c
BLAKE2b-256 checksum
How to use checksums
827950c435575fb973f42ee1b051763082998814862b21ef0c085ba5ba23dfd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","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.22.0-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL tors_documents-0.22.0-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
07d685c0713ddb1ce23b5792ed0b395126f0b81bef7421eb4651e4652bd511fd
BLAKE2b-256 checksum
How to use checksums
0e68d1dd122295d3168a6650200895c1ba922a2de6b33d3365ca8cca80833e9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","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.22.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL tors_documents-0.22.0-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
f76c7e73a8c8884310a7b165871850fbf3582e37d9cf0e9ef495b4103fa26f43
BLAKE2b-256 checksum
How to use checksums
0ef7ea69fa2dd86943ee37a7408624907dd4a200bb0c9a941ddc21dda2f11bf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","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.22.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL tors_documents-0.22.0-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
1bc6efdae1ec4bb755b311116a2fc155b447c73e5cf2cbe612a0f4bcb2bb991b
BLAKE2b-256 checksum
How to use checksums
f0b9fce9cbdb9efeb548bfba8800d319587d3a751b86a9df5f6ee40a039e7f01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","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.22.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL tors_documents-0.22.0-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
3127ba5fed690d3107c1242d48378e3e64c67d3fb2c247a4b2417a7bfaef20ed
BLAKE2b-256 checksum
How to use checksums
f0c0617b9be38512981ae791e0c843db2ab57240c3fbd08e2b8a6132cca1c0cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","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.22.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL tors_documents-0.22.0-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
4669bd4294627b2124fa31181a42de40315e7d4474e45b38b5b3c7652f69c5ef
BLAKE2b-256 checksum
How to use checksums
16af5c59036414e7a430710bf8f3953cfea0eb0613f3ca8ade3e52dddc33535a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","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.22.0

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