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

Total release size: 127.5 MB

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

Download URL tors_documents-0.20.0-cp310-abi3-win_arm64.whl
Size 15.7 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
7edf454c324d16029ae6eb76bdb38b09a76f97c1631debe97c23785cbaa60b48
BLAKE2b-256 checksum
How to use checksums
76fa48d4903440e834911bd7abb9826c368ed11e080e27224d3a752a0c0d7cc5
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.20.0-cp310-abi3-win_amd64.whl

Download URL tors_documents-0.20.0-cp310-abi3-win_amd64.whl
Size 16.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a8dce5e5facdd01fe8508d1064803f37396a5703d3e1a0cefb9989eff9f4a2ba
BLAKE2b-256 checksum
How to use checksums
fdb1c6c9b2f6d94f642844a2eeeec1e10373e44496acf8a8ef5dccf52ea096df
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.20.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tors_documents-0.20.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
39758e9c38e3e6093e8beec7452b097e0f099f3a232a1cb4d11ec1d1a418fbf4
BLAKE2b-256 checksum
How to use checksums
f97120b1eec2c218405e70f4fdb2640fec4b3cf9f2f302e01cd21cb8c98a8c16
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.20.0-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL tors_documents-0.20.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 15.6 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
32e144848206ab1d15b31f3234fb0ade0080d33f701ad1cd1a10e9570011bd90
BLAKE2b-256 checksum
How to use checksums
af0184ea4dbc5fbcd6f7a99928eca3eb94b23316eca35bf05b47d98f2efeaced
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.20.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL tors_documents-0.20.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
ea8ae91509592c276600018ce4a11af92203716f44fa320ca51ccf05649efb11
BLAKE2b-256 checksum
How to use checksums
34f69b8fae1245aff74dce3f2c83e60997c2d8c5aca60ec6487a241ad248fc1f
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.20.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL tors_documents-0.20.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
66dfeb6e6ab088515d3db796639f2ca7f7ba5a203b7e185d72ed5c177dbdbc35
BLAKE2b-256 checksum
How to use checksums
1d03e651944d3b0ac5c01fd02310733a91a5238ac10466c6b21274a0366555cc
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.20.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL tors_documents-0.20.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
7f3ed47c2b2a30afa76b756a86a4eac1d950ea195a1677cb2fee06bb75a89b81
BLAKE2b-256 checksum
How to use checksums
21e28aed2b60960ce95d081b718201041f93fa7ec777501a80c1ff34ca3a98dd
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.20.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL tors_documents-0.20.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
13e8e62ebf0c40bda3fdef21083656bd7fa65ab9f03fb2fa504680695394e8b0
BLAKE2b-256 checksum
How to use checksums
e9230c619324ba5dee5a53a53c009f1fa78bf449687999cf23e1f34c338529d5
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.20.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