Skip to main content

AuxFlow

A compiler and static analyzer for LaTeX documents.

PyPI Python Docs

AuxFlow checks LaTeX cross-references and citations before the typesetting engine runs. It builds a dependency graph of all labels and references, detects cyclic loops, and calculates the exact compile passes the document needs.

For complete technical specifications, compiler architecture, and evaluation reports, visit the Documentation Website.


Installation

Install with pipx (recommended for command-line tools):

pipx install auxflow
pipx ensurepath

Or install with pip:

pip install --user auxflow

The optional installer script installs the published package and may edit your shell profiles. Inspect it before running it. Do not pipe a network download into a shell.

AuxFlow requires Python 3.12 or newer.


Quick Start

Check a LaTeX document:

auxflow check document.tex

Find the number of required compilation passes:

auxflow classify document.tex

Build the document with automatic runtime checks:

auxflow run document.tex

auxflow run starts local TeX tools. Run only documents and packages you trust. It is not a sandbox. Each tool has a 600-second limit by default. Use auxflow run --timeout 30 document.tex to change that limit.

Check for a published update without installing it:

auxflow update --check

Run auxflow update to install a newer release into the current Python environment. Editable installations require a manual package-manager update. Normal commands can show a cached update notice on stderr. AuxFlow checks PyPI at most daily while a command runs, without waiting for the network. Short commands may finish before that check completes. No background service remains running. Set AUXFLOW_NO_UPDATE_CHECK=1 to disable automatic checks.

Show all commands and options:

auxflow help

Show installation environment and project links:

auxflow info

How It Works

LaTeX documents write labels, tables of contents, and citations to helper files (.aux, .toc, .bbl). Standard build tools repeat the compile process until these files stop changing.

AuxFlow analyzes your source code directly:

  1. Scans and parses your LaTeX files into an Abstract Syntax Tree.
  2. Builds a dependency graph of all references, lists, and citations.
  3. Finds feedback cycles and calculates whether values affect document length.
  4. Assigns a convergence state:
    • CERTIFIED: Clean document with a fixed pass count.
    • BENIGN_CYCLIC: Safe cycles that settle without changing length.
    • AMPLIFYING: Loops that cause endless page expansion. Refused by default.
    • UNKNOWN: Unrecognized packages or commands. Uses safe default runs.
  5. Creates an optimized build plan that skips redundant runs and unnecessary tool calls.

Documentation

Full documentation is available at auxflow.upayan.dev:

  • Technical Reference: Architecture, Compiler Pipeline, Intermediate Representation, and Static Analysis.
  • Project Details: Formal Specifications, Research Questions, and Literature Review.
  • Evaluation & Benchmarks: 15-document Benchmark Corpus, Methodology, and Verification Reports.
  • Course Reviews: Review Notes, Presentations, and Downloadable Documents.

License

MIT License. See LICENSE.

Metadata

Release files for auxflow 0.3.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 auxflow 0.3.0
File Size Uploaded Provenance
auxflow-0.3.0.tar.gz 7.4 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for auxflow 0.3.0
File Interpreter ABI Platform
auxflow-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 MB

Release files / auxflow-0.3.0.tar.gz

Download URL auxflow-0.3.0.tar.gz
Size 7.4 MB
Tags Source
SHA-256 checksum
How to use checksums
62f58e91140ea69a08e978a650e047c11bc9228293edb50bda30064f5515edd7
BLAKE2b-256 checksum
How to use checksums
d0ec78a17edfa970e0cff06f0beb9a6977018574cc76a7e19cd9386639ac33d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / auxflow-0.3.0-py3-none-any.whl

Download URL auxflow-0.3.0-py3-none-any.whl
Size 73.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69017b8bdf36855e01bcaa7418b2be63caa7a6c2ac1d67c9b55fdf4b959fb7e6
BLAKE2b-256 checksum
How to use checksums
a27c061ddbb62cd3ec5bb900ad46107f16ef414b70692291833279f809b4f894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for auxflow 0.3.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for auxflow-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

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