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

Total release size: 112.1 MB

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

Download URL tors_documents-0.16.0-cp310-abi3-win_arm64.whl
Size 12.5 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
63e07ff4ad5d8da57f8692d011d4e85279ae1da0b465676a1fc88ae992636033
BLAKE2b-256 checksum
How to use checksums
1328f40f8362d351b84813aef0d2e1da184200de552ff60a460b4a58427ca533
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.16.0-cp310-abi3-win_amd64.whl

Download URL tors_documents-0.16.0-cp310-abi3-win_amd64.whl
Size 13.3 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
06017b6db002bd64cd1f78a62c1301af751aa2f6e7bd0662042021e5ba9144ac
BLAKE2b-256 checksum
How to use checksums
30d480bfa3499abfdc6c1a163741b0887bbad5ff83eeab03a60c3e2d37a80d8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.16.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tors_documents-0.16.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 15.3 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
53bcb4e834ce0b39a594aaa54979470a45e9c45e6f91b43b8884206bf39c8a49
BLAKE2b-256 checksum
How to use checksums
3608910bc6c8ac9fa42702f3adaf999a4c496eaa27d95c90f995020d53e4f025
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.16.0-cp310-abi3-musllinux_1_2_aarch64.whl

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

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

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

Download URL tors_documents-0.16.0-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
84b9c4e057a1a9626b5855a3edaf8189a6322177c00c2df3bb2549cc1fe4c04c
BLAKE2b-256 checksum
How to use checksums
cb10f39799152d9e10dc064e85678e136780fc2fae74aff9f34a59c5ac84da68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.16.0-cp310-abi3-macosx_10_12_x86_64.whl

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