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

Metadata

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

Total release size: 111.1 MB

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

Download URL tors_documents-0.15.1-cp310-abi3-win_arm64.whl
Size 12.4 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
9a36f1dc147c33b0d68d1f5a55e4667c8922b1526459129d2ecff64d6f5d1c90
BLAKE2b-256 checksum
How to use checksums
78c8a9009299f54592169d4bef59871c1c11794bc2cd53fc284b57eb9f867213
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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.15.1-cp310-abi3-win_amd64.whl

Download URL tors_documents-0.15.1-cp310-abi3-win_amd64.whl
Size 13.2 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
09b877f585ba85ada041db97fda5faf031963f7a9463e3da8a8206c627bf5de3
BLAKE2b-256 checksum
How to use checksums
dc6f277c1f1bd7ad9b59a003e5d55c88c4ff243c1181f51c5514889120f3842a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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.15.1-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tors_documents-0.15.1-cp310-abi3-musllinux_1_2_x86_64.whl
Size 15.2 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
48d2ed261393ff02d2b8dfe9d821fa210c71fd8817ad877b7bd7182212c2f842
BLAKE2b-256 checksum
How to use checksums
2d3ea551853280561005c09a7c84c0226d1cba1f4f2eb79b3adbb30793a543d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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.15.1-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL tors_documents-0.15.1-cp310-abi3-musllinux_1_2_aarch64.whl
Size 14.5 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
7b985f905c083857093b1ac213d832618096ac1b66d855644778dcc68993f4e7
BLAKE2b-256 checksum
How to use checksums
25c7917e3ab3dc349e40310f423650e689efab049961d1f8768a5d6fc1569819
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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.15.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tors_documents-0.15.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 14.5 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
fbf28dc5fee76d8e463af2f611f730a6a963a3df94bda1489fabb55a8f4f0d1c
BLAKE2b-256 checksum
How to use checksums
ae7e0480bce0e64a0cb9f8393fd0471393dfa8b7c64f19cae84ebeb344c82a13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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.15.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tors_documents-0.15.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 14.3 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
a884bdaf66cafc72df1f3ece8fbda89a312d7d9b7945c07f7256ed5e1565b852
BLAKE2b-256 checksum
How to use checksums
66d3d476e6eb47fdcdac7b38c1e53293280b3d22c0a491c1f91ab49c4549904b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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.15.1-cp310-abi3-macosx_11_0_arm64.whl

Download URL tors_documents-0.15.1-cp310-abi3-macosx_11_0_arm64.whl
Size 13.3 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bcad27904193aac9c090d036593d19103dbaa98fa2c5edc09299fcdb49cd13b1
BLAKE2b-256 checksum
How to use checksums
0baef043553bcb54372d83ce1fdb5362757af85559c12d92dc4a6c61b60d5de0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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.15.1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL tors_documents-0.15.1-cp310-abi3-macosx_10_12_x86_64.whl
Size 13.7 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b56d46e14511a8181e659de2870b2d2e5e1eb692f2e705d60b7eb9b198ecbea4
BLAKE2b-256 checksum
How to use checksums
ba83452922eac7979e7a4cfe1271ce09469365285daa0b211f93813a95ad45f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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}

Security for tors-documents 0.15.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