Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ProDocuX Kernel

Deterministic document kernel for ProDocuX. Runtime does not call any LLM API (semantic drafting stays on the solver side).

License: Apache-2.0. See LICENSE.

Source version in this branch: 0.3.0rc14.

Latest verified PyPI release: 0.3.0rc13, published from tag v0.3.0rc13 at commit 04cac26bed34107d09ddbbab5fc96c9d42ea649b.

python -m pip install "prodocux==0.3.0rc13"

Portable document Inspect/Read/Resolve APIs and explicit CSV/XLSX v2 selection are available in this source version. See portable intake.

The rc8 release replaced the mandatory AGPL PDF dependency with a permissive default writer and keeps PyMuPDF behind an explicit optional extra.

The rc5 Kernel-only release fixed deterministic PDF wrapping, explicit line breaks, pagination, and mixed Latin/CJK font selection without changing frozen contracts. See rc5 publication record.

Documents

Install

git clone https://github.com/prodocux/prodocux.git
cd prodocux
.\runtime\install.ps1 -Fresh
.\runtime\verify.ps1

Or:

python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e ".[dev]"
.\.venv\Scripts\python.exe -m pytest -q

Install the current deterministic extract/render prerelease using the verified PyPI command at the top of this README.

The older published wheel prodocux PyPI 0.3.0rc1 predates the additive extract/render freeze and must not be overwritten. Frozen compatibility v3 still pins implementation commit 53c4784d4b2bae4437252a287193e897973e8474. See docs/RELEASE.md.

See runtime/INSTALL.md for environment variables and private-sidecar notes.

Release maintainers can verify a wheel from an isolated temporary directory:

python scripts/verify_clean_install.py

See docs/RELEASE.md for the PyPI Trusted Publisher and GitHub approval-boundary workflow.

Test

.\.venv\Scripts\python.exe -m pytest -q

Start API

.\.venv\Scripts\python.exe run_kernel.py   # http://localhost:8900/v1

Available capabilities

Component Endpoint Status
Structure invariants (L0) POST /v1/validate-structure shipped
Scorer (L0–L3) POST /v1/score shipped
Review capture POST /v1/review/start, /commit shipped
Version GET /v1/version shipped
Legacy semantic extract/learn and path-shaped render POST /v1/extract, /learn, /render stub or 501
Deterministic block extraction POST /v1/intake/extract-blocks shipped
Bounded DOCX continuation POST /v1/intake/extract-blocks/continue rc9 source candidate
Deterministic artifact render POST /v1/render/artifact shipped
Render capabilities/artifact retrieval GET /v1/render/capabilities, /artifacts/{artifact_id} shipped
Deterministic PDF page intake POST /v1/intake/extract-pages shipped
JPEG/PNG technical profile POST /v1/intake/profile-image shipped
Typed evidence verification POST /v1/verify/evidence-bundle shipped
Normalized structured diff POST /v1/compare/normalized-profiles shipped
Original-file diff for DOCX, XLSX, PDF and PPTX POST /v1/compare/files rc14 candidate. Dual source references, reported alignment ambiguity and partial coverage.
Frozen Windows archive worker (CR-004) Trusted host runtime configuration rc14 candidate. Full Windows CPython runtime provisioned by the host.

The PDF intake endpoint accepts only a bounded base64 payload and a plain .pdf basename. It returns source SHA-256, bounded page text, truncation disclosure, and an explicit ocr_required status without persisting the source document or calling an LLM.

The additive DOCX continuation endpoint returns at most 200 addressable blocks per response. Its range descriptor binds the exact source SHA-256 and prodocux_docx_block_projection_v1; a changed source is rejected rather than silently resumed. Range, cumulative block/row/UTF-8-byte counts, coverage, known-total, omission, warning and OCR-disposition fields let callers distinguish complete, partial-known and partial-unknown projections. DOCX page counts are null because this parser does not perform layout pagination. The legacy five-format extraction endpoint remains unchanged. This capability is included in the rc9 source candidate but is not part of the published rc8 package. The descriptor is not authenticated: consumers must require each response range.start to equal the preceding range.end_exclusive. The bound applies to returned content, not parse work; later ranges currently reparse from the start, so complete traversal can approach O(n²). Header, footer, footnote, endnote and comment stories are outside the parser scope and are disclosed as omissions when present. Large-PDF continuation is not implemented by CR-001.

GET /v1/intake/capabilities is the authoritative machine-readable source for available intake operations and their raw-byte/page ceilings. Clients should discover these limits instead of copying constants into adapters.

The evidence verifier accepts already-extracted typed evidence and declarative presence, equality, numeric-range, and date/version checks. It returns stable pass/fail/review reasons without interpreting product claims or regulations. Image OCR is available only through an explicitly injected bounded backend; otherwise the profile reports ocr_unavailable. Normalized diff reports source-linked structural/value changes but leaves business impact to the host.

Library hosts may inject an opaque artifact:// resolver. ProDocuX rejects network/local-path identities at this boundary and verifies declared media type, size, and SHA-256 before returning bytes; storage authorization and tenant isolation remain host responsibilities.

Flagship pipeline

Deterministic template extract → field mapping → precise write → structure repair → L0 gate. Content drafts are supplied by the solver as drafts.json.

See examples/pif_tw/ for curated synthetic fixtures (no customer documents).

Skills (first-party)

Skill Module
Structure health skills.structure_health
Number audit skills.number_audit
Version diff skills.version_diff
Clause diff skills.clause_diff
Doc assemble skills.doc_assemble
PIF audit (TW) skills.pif_audit
PDF extract skills.pdf_extract

All first-party skills are deterministic. CLI messages support en and zh-TW.

Metadata

Release files for prodocux 0.3.0rc14

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

Source distribution (sdist)

Source distribution for prodocux 0.3.0rc14
File Size Uploaded Provenance Actions
prodocux-0.3.0rc14.tar.gz 295.9 kB With provenance Details for prodocux-0.3.0rc14.tar.gz

Built distribution (wheel)

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

Total release size: 593.0 kB

Release files / prodocux-0.3.0rc14.tar.gz

Download URL prodocux-0.3.0rc14.tar.gz
Size 295.9 kB
Tags Source
SHA-256 checksum
How to use checksums
184dc70cac60ff8013a7c3863211625a234bb87f7bb63f5054580ecc1f57d8bb
BLAKE2b-256 checksum
How to use checksums
e4066d06d78df486b1e126b17918735a8e803c9c7f3291da817426f02087c0c2
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 Nov 30, 2026.

Transparency log

Release files / prodocux-0.3.0rc14-py3-none-any.whl

Download URL prodocux-0.3.0rc14-py3-none-any.whl
Size 297.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
196003c9243836f38b7488ba29b9c10858bacc5f96029c6cf9efb89fa1f747d9
BLAKE2b-256 checksum
How to use checksums
1c6b104512f77d99c107d66975532c0cce80bb242bf6941de21982ea84e36b42
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 Nov 30, 2026.

Transparency log

Security for prodocux 0.3.0rc14

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for prodocux-0.3.0rc14.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 Nov 30, 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