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/sniff/pdf_extract/pdf_page_count/pdf_classify/pdf_link_uris, the Backend/Format/PageKind enums, PdfClassification, NeedsOcrError, and tors.documents.aio

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

Total release size: 108.3 MB

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

Download URL tors_documents-0.6.1-cp310-abi3-win_arm64.whl
Size 12.1 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
1dd74e25531568215cd760d64db69e85998fe08914c717e059dc884bf13e2234
BLAKE2b-256 checksum
How to use checksums
ceb42878ea280b8a3aed9be16690a6e4f59f6d7e7cbca325de855bbfdbd95ca2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.6.1-cp310-abi3-win_amd64.whl

Download URL tors_documents-0.6.1-cp310-abi3-win_amd64.whl
Size 12.8 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3f176de7b286b696b1cebbbc132f61df9abe19ce27205bd461b42be055aae3ca
BLAKE2b-256 checksum
How to use checksums
dfff19f5b5e42b015e9b88d43e30caea72ce9fe4eaae4ca61f433980c0c4be9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.6.1-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tors_documents-0.6.1-cp310-abi3-musllinux_1_2_x86_64.whl
Size 14.8 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
ea3e350a99a31a08d151b5d162796af5c3aab1b647d0cf0235afe4466e8c083e
BLAKE2b-256 checksum
How to use checksums
c3930285b4f7cabe47fcbfa2e2fd06fe3ad50f44ee976b9b13e3436ff59e12a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.6.1-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL tors_documents-0.6.1-cp310-abi3-musllinux_1_2_aarch64.whl
Size 14.2 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
8fbe5c1e864ab7754ba3caed891bdb21d4b06ec4367c444aeca7b98e65cbd25e
BLAKE2b-256 checksum
How to use checksums
78590f5be9f546373c8ee92d48970ca109bb571c4de578996d51d3ee546a1613
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.6.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tors_documents-0.6.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 14.1 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
f271ab34c0ff87b650f09f3747af7b709cf65fc525e8001e3e9fdeae1aec1ce9
BLAKE2b-256 checksum
How to use checksums
9efa23276b79f46364d6d5d7d2c4ffa909720bf5866d300cc8b05c8c5fba33bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.6.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tors_documents-0.6.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 13.9 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
13e9970c444388e8b31970c83a0487fce7ea2dbaf9b358bafac4339731d9d5a1
BLAKE2b-256 checksum
How to use checksums
e65ffd95b2a1cec703da5d33f5f7b3e8f95bb149c7f5e5c231aa35d14fd833cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.6.1-cp310-abi3-macosx_11_0_arm64.whl

Download URL tors_documents-0.6.1-cp310-abi3-macosx_11_0_arm64.whl
Size 12.9 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4514f072ff5420b81156a82bef77cb1109e66eeb99d6ec57de91de8178352634
BLAKE2b-256 checksum
How to use checksums
f22a81fc605de013260ec431319a77835bbb066dd50f9722366c7e4240af4754
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.6.1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL tors_documents-0.6.1-cp310-abi3-macosx_10_12_x86_64.whl
Size 13.4 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
5022bc379edc8afcdd5f2d5e90c816ec387aea16729f933e3ee35afeffab0bd7
BLAKE2b-256 checksum
How to use checksums
2ceb3e09351c209f050805b2b9f17bd5ce1cd702fca6d5297c0d863f87cc44db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.11.0

8 release files

0.10.1

8 release files

0.10.0

8 release files

0.7.0

8 release files

This release

0.6.1 This release

8 release files

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