Skip to main content

Doctrail

A doctrail mascot, courtesy of DALL-E 3
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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doctrail 0.4.0
File Size Uploaded Provenance Actions
doctrail-0.4.0.tar.gz 1.3 MB Without provenance Details for doctrail-0.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for doctrail 0.4.0
File Actions
doctrail-0.4.0-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details for doctrail-0.4.0-cp312-abi3-manylinux_2_28_x86_64.whl
doctrail-0.4.0-cp312-abi3-manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64 Details for doctrail-0.4.0-cp312-abi3-manylinux_2_28_aarch64.whl
doctrail-0.4.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for doctrail-0.4.0-cp312-abi3-macosx_11_0_arm64.whl
doctrail-0.4.0-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details for doctrail-0.4.0-cp312-abi3-macosx_10_12_x86_64.whl

Total release size: 49.4 MB

Release files / doctrail-0.4.0.tar.gz

Download URL doctrail-0.4.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
7ff9391faa97a89ef0a1a6a0ad27b368a37de472b35cbce5162cdecf62fe693e
BLAKE2b-256 checksum
How to use checksums
8d081f274bcf8515904de3298ff19fcdf68bba82841cee2def5e67689af4b1bb
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.0-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL doctrail-0.4.0-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
7acca6bd35f35ca094ace8800303400f52223d936217410d93409ddf44c533f4
BLAKE2b-256 checksum
How to use checksums
a6b3a269c4cf4a457811493bcde77c64d356af8aa4700de965cffbe1bb1ba925
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.0-cp312-abi3-manylinux_2_28_aarch64.whl

Download URL doctrail-0.4.0-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
92b0c0b98728abbfd3f468694b03a8a2ea95843b636bbab97976b47fe9796b97
BLAKE2b-256 checksum
How to use checksums
4f9647bd15abd16ca5b9f80cbab24a19de89da323b3a85209a6fedeeba725da2
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.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL doctrail-0.4.0-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
e8807f06eb0c4db0583af24dd65647326ed1b32e61bdb2a71505fbffa65e4ac1
BLAKE2b-256 checksum
How to use checksums
146d3416b90bbd6c6c1303fda653920b6c27fd3999f022ff842e077964c04f5a
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.0-cp312-abi3-macosx_10_12_x86_64.whl

Download URL doctrail-0.4.0-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
3236e918b0f6d47bfd45c7e19b627242dd464f8f7e0054b6ed49fa5671472cee
BLAKE2b-256 checksum
How to use checksums
2a346a81272cb9a09d71b09eec3f6b838841c8a9207248d270cfc9bd0a7aa689
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.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