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_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, and tors.documents.aio

Metadata

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

Total release size: 139.3 MB

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

Download URL tors_documents-0.18.0-cp310-abi3-win_arm64.whl
Size 15.6 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
32e61eee6cc4c4c3075a41c5e45f229dc7afe8035d944f56529258aa7c1d0426
BLAKE2b-256 checksum
How to use checksums
9f689ded87abc385247e18507550e067f67e64a9bb0cfaa75f0c6a8ef58394e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.18.0-cp310-abi3-win_amd64.whl

Download URL tors_documents-0.18.0-cp310-abi3-win_amd64.whl
Size 16.6 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
965e8cc870ef6fe19139e175eec373469cc79df92d0276717f5f19ab82516bf8
BLAKE2b-256 checksum
How to use checksums
aa5f969dbb80d9a63ee8706351362c92be45439458554ad6cd30b56fe5adac8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.18.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL tors_documents-0.18.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 18.9 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
a362cc86682ef4d24692494cdf4602705c349e76fdc0cccaff8e15ac8d41d3b1
BLAKE2b-256 checksum
How to use checksums
154c69faee9b4cfe6f8c0f1a1153bacf3061e0326e550677cdec80d518f7b1cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.18.0-cp310-abi3-musllinux_1_2_aarch64.whl

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

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

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

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

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