Skip to main content

Authoritative, versioned PDF facts contract for Think Neverland tools.

Project description


title: "Overview" description: "Authoritative read-only PDF facts engine for Think Neverland tools. Versioned contract, schema-validated output, and consumer-agnostic extraction." group: "Getting started" order: 1 slug: "overview"

codexPDF

codexPDF is Think Neverland's authoritative, read-only PDF facts reference.

Other engines consult codexPDF for canonical document facts instead of re-parsing PDFs independently. The contract is versioned and schema-validated.

Status

Current baseline includes:

  • Python package (codex_pdf) with typed models
  • CLI (codex-pdf extract|schema|validate|probe|parity)
  • Versioned schemas in schemas/v1/
  • Golden output harness under tests/golden/

Quickstart

uv sync
uv run codex-pdf probe input.pdf --json
uv run codex-pdf extract input.pdf --pretty > out.json
uv run codex-pdf validate out.json
uv run codex-pdf parity --fixtures-root tests/fixtures --profile summary --max-files 5
uv run codex-pdf parity --fixtures-root tests/fixtures --profile inventory --max-files 5
uv run codex-pdf parity --fixtures-root tests/fixtures --profile deep --max-files 5

Optional external baseline comparison (consumer-specific adapter provided at runtime):

uv run codex-pdf parity \
  --fixtures-root /path/to/pdfs \
  --profile summary \
  --baseline-command "<your_command_with_{pdf}_placeholder>"

Contract

The public API is the JSON contract rooted at CodexDocument.

  • Schema path: schemas/v1/codex-document.schema.json
  • Runtime model: codex_pdf.models.v1.CodexDocument
  • Stability policy: SemVer (major for breaking contract changes)

Documentation

Topic Doc
Architecture and boundaries docs/architecture.md
CLI commands and usage patterns docs/cli.md
Contract and schema versioning docs/contract.md
Parity profiles and baselines docs/parity.md
Preflight ingest adapters docs/preflight-ingest.md
Migration sequencing docs/migration-plan.md
Legacy discovery audit docs/discovery-audit.md
Backward compatibility requirements docs/backward-compatibility.md
Cleanup stop-gates policy docs/cleanup-stop-gates.md

License

AGPL-3.0-or-later.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codex_pdf-1.4.4.tar.gz (650.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codex_pdf-1.4.4-py3-none-any.whl (575.4 kB view details)

Uploaded Python 3

File details

Details for the file codex_pdf-1.4.4.tar.gz.

File metadata

  • Download URL: codex_pdf-1.4.4.tar.gz
  • Upload date:
  • Size: 650.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for codex_pdf-1.4.4.tar.gz
Algorithm Hash digest
SHA256 31447cb2e90cf69d3118ce409cd4f00bb67772de86b84a6512652ce921f06906
MD5 7c11250649f31a8efb64a67e2485dcc1
BLAKE2b-256 0623ac2629925fe687043a2d9bdbe78c937cfed7336d817d241cff73f7106106

See more details on using hashes here.

File details

Details for the file codex_pdf-1.4.4-py3-none-any.whl.

File metadata

  • Download URL: codex_pdf-1.4.4-py3-none-any.whl
  • Upload date:
  • Size: 575.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for codex_pdf-1.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8d541de8376bc20138e57683ffec0141b11e3fce969d7dbc80ffd5404bcbf30c
MD5 ad520b4a7738c34510037adca8c360d5
BLAKE2b-256 4356ed2ad92b513aaa14a078c90a61cc821f6d317dade186f92885c33e30bf1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page