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, theBackend/Format/PageKindenums,PdfClassification,NeedsOcrError, andtors.documents.aio
Release files for tors-documents 0.10.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| tors_documents-0.10.1-cp310-abi3-win_arm64.whl | CPython 3.10 | abi3 | Windows ARM64 | Details |
| tors_documents-0.10.1-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| tors_documents-0.10.1-cp310-abi3-musllinux_1_2_x86_64.whl | CPython 3.10 | abi3 | Linux musl 1.2+ x86-64 | Details |
| tors_documents-0.10.1-cp310-abi3-musllinux_1_2_aarch64.whl | CPython 3.10 | abi3 | Linux musl 1.2+ ARM64 | Details |
| tors_documents-0.10.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.10.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| tors_documents-0.10.1-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
| tors_documents-0.10.1-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 110.2 MB
Release files / tors_documents-0.10.1-cp310-abi3-win_arm64.whl
| Download URL | tors_documents-0.10.1-cp310-abi3-win_arm64.whl |
|---|---|
| Size | 12.3 MB |
| Tags | CPython 3.10 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
353a4ea2eba9f69bc1999e159c821b6fbc07c9663acedb8995538d049c980f31
|
|
BLAKE2b-256 checksum How to use checksums |
0ec3cc0f248206c500e31b368cb7b91632a6599914dc5b9ab7988ed44a206b81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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.10.1-cp310-abi3-win_amd64.whl
| Download URL | tors_documents-0.10.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 13.0 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6d919cb35441389a0034c00fb018e5e9537a7d2a9095bb853e8f7f0062bd4298
|
|
BLAKE2b-256 checksum How to use checksums |
8259020bf4be8f044d463bbf901f3da063ecd0d5242a28e2c1ff5fe3831b3dd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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.10.1-cp310-abi3-musllinux_1_2_x86_64.whl
| Download URL | tors_documents-0.10.1-cp310-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 15.1 MB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1284b83ae79be5a5a777fa18bddefc2b5493c78af424b2bb04bb0e8f1472f1c5
|
|
BLAKE2b-256 checksum How to use checksums |
34eb92cdca80ce738b4bb017fe734a296ee58c2fd46e92e19b95dd1ad5fa55ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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.10.1-cp310-abi3-musllinux_1_2_aarch64.whl
| Download URL | tors_documents-0.10.1-cp310-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 14.4 MB |
| Tags | CPython 3.10 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
fb441345fb1baf45db7efc6472915397e47a703ff2e919796d077ba8e1a801e9
|
|
BLAKE2b-256 checksum How to use checksums |
ce43a5c2e738a0ccb749990bc64a38f1e5b0ac2d0452d87c36802495758e3c3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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.10.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tors_documents-0.10.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 14.4 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f3a7903df2bb1ff12b0b7edd7150c21d3f3ae9c4c5b60dbdec645a26bfafdd49
|
|
BLAKE2b-256 checksum How to use checksums |
b6037f7d2c340d07d37d4449198438667f8fa39bd4b8c69191d02938638541ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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.10.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | tors_documents-0.10.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 14.2 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
290ba66f8f28e7820e0f2269abb3450cbcfc638eac178d54f099b02b59b1ed97
|
|
BLAKE2b-256 checksum How to use checksums |
83cf10fc01f6d9b2c4088bb732b1e35f07299bacdfa5c92159c12dadeb908336
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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.10.1-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | tors_documents-0.10.1-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 13.1 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5e3977ea8cb5e93d60b785efda590f68a33881b29a4587321e3ca28550ac103e
|
|
BLAKE2b-256 checksum How to use checksums |
09ad751e215cce8c7c46390dcb2e24b7463fdbc74df5ac3e38a787c0bf6e4c30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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.10.1-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | tors_documents-0.10.1-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 13.6 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
39c77912579a49d2505165dc67c454ba7a24f587e94a8dc9e808e084e5e64d38
|
|
BLAKE2b-256 checksum How to use checksums |
ae790608519213bf7c7f3dcb65f4e47f7e48c72d97c78a58577fa49028ce4326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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}
|