Doctrail
| A doctrail mascot, courtesy of DALL-E 3 |
Doctrail turns document collections into auditable, structured research data with LLMs.
It ingests files into an SQLite database, applies structured codebooks and prompts to selected rows, runs them through an LLM (OpenAI, Gemini, Anthropic, OpenRouter, or a self-hosted OpenAI-compatible server), and returns ordinary tables and views for iteration and analysis.
Doctrail is meant to be driven by both researchers and coding agents.
Start here
For researchers and users, the documentation is at https://doctrail.org.
For LLMs and coding agents, the complete operating manual is at https://doctrail.org/llms.txt.
Install
Install the command line tool:
uv tool install doctrail
doctrail --help
Or run directly:
uvx doctrail
From source:
git clone https://github.com/mpr1255/doctrail
cd doctrail
uv run doctrail --help
Documentation
The full documentation is at https://doctrail.org.
Inside the package, doctrail docs prints the reference documentation offline.
License
GNU AGPL-3.0-or-later (see LICENSE and THIRD_PARTY_NOTICES.txt). Doctrail bundles MuPDF for PDF extraction; corresponding source for every release is published in the matching PyPI source distribution and this repository.
Metadata
Release files for doctrail 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| doctrail-0.4.1.tar.gz | 1.3 MB | Without provenance | Details for doctrail-0.4.1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| doctrail-0.4.1-cp312-abi3-manylinux_2_28_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ x86-64 | Details for doctrail-0.4.1-cp312-abi3-manylinux_2_28_x86_64.whl |
| doctrail-0.4.1-cp312-abi3-manylinux_2_28_aarch64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ ARM64 | Details for doctrail-0.4.1-cp312-abi3-manylinux_2_28_aarch64.whl |
| doctrail-0.4.1-cp312-abi3-macosx_11_0_arm64.whl | CPython 3.12 | abi3 | macOS 11.0+ ARM64 | Details for doctrail-0.4.1-cp312-abi3-macosx_11_0_arm64.whl |
| doctrail-0.4.1-cp312-abi3-macosx_10_12_x86_64.whl | CPython 3.12 | abi3 | macOS 10.12+ x86-64 | Details for doctrail-0.4.1-cp312-abi3-macosx_10_12_x86_64.whl |
Total release size: 49.4 MB
Release files / doctrail-0.4.1.tar.gz
| Download URL | doctrail-0.4.1.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eda8284f4ed1803dfa7875d226159e2cc7776e7580b7051763420e4ba7d40e3d
|
|
BLAKE2b-256 checksum How to use checksums |
8bde615ef0d6082405e99fca068eff0a0b28799f3fe7ea428a63236ad0f1631e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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 / doctrail-0.4.1-cp312-abi3-manylinux_2_28_x86_64.whl
| Download URL | doctrail-0.4.1-cp312-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 12.3 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b7511d8f0c2f1803b1d1d09c5cca35e70fba30beeaec682f417f658817da961d
|
|
BLAKE2b-256 checksum How to use checksums |
23ac87d93742b9c9c4c7fe7b1c74aa7c6b4dca00e562a2e907676d889e4fdd65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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 / doctrail-0.4.1-cp312-abi3-manylinux_2_28_aarch64.whl
| Download URL | doctrail-0.4.1-cp312-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 12.2 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
9442e7e8bcb72debec3c771cc44d498a3a666ae2c97fc3bb2cfef327125f1e16
|
|
BLAKE2b-256 checksum How to use checksums |
65a8a977691f85dc44f5e0974db11a91a26a229a7799bcf70dace843595cb760
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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 / doctrail-0.4.1-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | doctrail-0.4.1-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 11.7 MB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b54057b4df8dc2e2e468b8a2e442a321d53cd3873f0ee022b6182eb1ad34cafa
|
|
BLAKE2b-256 checksum How to use checksums |
e39740e808affa3df438d8bca4042a9a74372fa8b80a49d4dfa3a209eb73d94c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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 / doctrail-0.4.1-cp312-abi3-macosx_10_12_x86_64.whl
| Download URL | doctrail-0.4.1-cp312-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 11.9 MB |
| Tags | CPython 3.12 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
52a577e1f88bd0a348c124aa4bc72225cf2927dd551419875224ccaaa08e35e4
|
|
BLAKE2b-256 checksum How to use checksums |
0f652c6bff97127f5fff294c525ce6447379905ddb5dfac76b94c3aa63dcb973
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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 doctrail 0.4.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.