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

Total release size: 132.6 MB

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

Download URL tors_documents-0.23.0-cp310-abi3-win_arm64.whl
Size 16.3 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
2025bad0889230ba25b15b687f5b3b0c8b6e418dc39734ca5932e1e5fa957311
BLAKE2b-256 checksum
How to use checksums
32b286c47d6cc39ef273d9da35ba03cd24fed35644a97654c7dbbe232fc2cd6b
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.23.0-cp310-abi3-win_amd64.whl

Download URL tors_documents-0.23.0-cp310-abi3-win_amd64.whl
Size 17.4 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
47aa82288b4d173ff9c9279d16fb83fadd4dc7f40da7845ae323fd93979db2e2
BLAKE2b-256 checksum
How to use checksums
27facd35032a7a0e78a8adcd5e80b1cf5f9480369dbddb9a031615298cb75856
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.23.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tors_documents-0.23.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 17.4 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
a3651cf6517e75dcdd5d8bfe84945dde00ee05e85aa40c94370b3b720854f46b
BLAKE2b-256 checksum
How to use checksums
1d9096f69d7f1f5aa5c1716c1938318bece0aa4cc47968ce5ea5604c9e90d149
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.23.0-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL tors_documents-0.23.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 16.3 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
12c5cada0c83097becaf799c1cd3c4a2328cc8dfb59f83cab25db1b75bf27378
BLAKE2b-256 checksum
How to use checksums
072f1b920af277a5043cb2b46abcfe277d29885c9b7553a8f15caafd0ea71785
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.23.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL tors_documents-0.23.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 17.0 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
e8fd17fc88b5a81838eb7b61145178628acd275b7535a32d81a24433e53e060d
BLAKE2b-256 checksum
How to use checksums
e2ec14c6dab425a62954a87ff991fbb397dd7622e5abcdecaa0ef3ec6aa3c6ff
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.23.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL tors_documents-0.23.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 16.1 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
7b554917bd34b4be02cb8e10316ebffaddd57b3d0794b0db7df9c8b166a341c2
BLAKE2b-256 checksum
How to use checksums
12e47a9b24ded968af50dd16a876214b5ca526dfff6688b4d53f0a73e54d3593
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.23.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL tors_documents-0.23.0-cp310-abi3-macosx_11_0_arm64.whl
Size 15.7 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1732ad7c04193d835b0f3c786a00d8120d5eb3b18f14164f9572c2a7f918081a
BLAKE2b-256 checksum
How to use checksums
51537206d2adb8f6d19adcb2e94e5fdeb5f9275fe77ff307d7cb9d98e9e3958a
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.23.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL tors_documents-0.23.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 16.4 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
78b37daa6598b283c97a49e9a9381d4fcdb944b2316d884efe6e884d18d220b9
BLAKE2b-256 checksum
How to use checksums
9da9beaafc8bfea093b7599f7b03f07d2a885e63626cb888fb01ecf61f48ecce
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.23.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