Download Latest Version v2.6.7 source code.zip (25.8 MB)
Home / v2.6.5
Name Modified Size InfoDownloads / Week
Parent folder
pdf_craft-2.6.5-py3-none-any.whl 2026-10-26 493.9 kB
pdf_craft-2.6.5-py3-none-any.whl.publish.attestation 2026-10-26 9.7 kB
pdf_craft-2.6.5.tar.gz 2026-10-26 406.4 kB
pdf_craft-2.6.5.tar.gz.publish.attestation 2026-10-26 9.6 kB
README.md 2026-10-26 2.5 kB
v2.6.5 source code.tar.gz 2026-10-26 25.4 MB
v2.6.5 source code.zip 2026-10-26 25.7 MB
Totals: 7 Items   52.0 MB 0

PDF Craft v2.6.5

PDF Craft 2.6.5 adds translation-size previews and operation-scoped resource reports, so applications can inspect source words before execution and observed remote consumption after completion, failure or cancellation.

  • New pcex_words_count and epub_words_count read-only queries share the actual translation pre-scan and source-word rules. Matching options produce the same total as translation's STARTED.total_words. Both Craft facades expose methods; the async facade keeps parsing outside the event loop.
  • New UsageCollector, UsageReport, Usage and RequestUsage group observed requests and input/output/cache-hit input tokens by original provider object. Pass usage= to model-calling operations and inspect usage.report() without changing the operation's existing return type.
  • Accepted and discarded consumption are separated as effective and wasted, including transport retries and business validation loops. Missing usage is not estimated. Provider prompt cache is distinguished from ordinary input; local cache hits do not create external consumption.
  • Support LLM, JEV and OCR vendors. OCR counts recognition submissions rather than pages, authentication calls or polling. Existing OCRTokensMetering is retained.
  • Classify translation and fill consumption for withdrawn PCEX metadata collections as wasted, including otherwise valid members of an incomplete subjects list. Independent accepted fields retain their effective consumption. Collections are translated separately from scalar fields so their usage can be settled accurately.
  • Adopt doc-page-extractor 1.2.2 and clip second-pass vendor OCR boxes against the actual redaction masks. This prevents later-stage detections from extending into previously recognized regions, including oversized footer boxes that blocked PDF translation writeback. See #545.
  • Read PCEX queue readiness and results from one SQLite snapshot, avoiding a race where online rendering or callbacks could read an unfinished result during scanning.
  • See usage and sizing or 中文说明 for examples, the accounting boundaries, and limitations. PCEX v4 and progress events are unchanged.

Resource reporting and task sizing: #550.

Full Changelog: https://github.com/oomol-lab/pdf-craft/compare/v2.6.4...v2.6.5

Source: README.md, updated 2026-10-26