Skip to content

pmcgrab 3.0.0

Choose a tag to compare

@github-actions github-actions released this 18 May 23:17
· 1 commit to main since this release
6d701ec

[3.0.0] - 2026-05-19

Added

  • Added the clean paper output contract pmcgrab.paper.v1, now emitted by
    default from the CLI, Paper.to_dict(), Paper.to_json(), and the high-level
    processing helpers. The clean contract contains the paper itself:
    identifiers, title, abstract, body, images, and tables.
  • Added --full-json and output_style="full" as the explicit escape hatch
    for metadata-rich V4 output.

Changed

  • Rewrote the README and public package copy around the clean default contract,
    image-enabled ingestion workflow, and full-JSON escape hatch.
  • The default output is now clean paper JSON instead of the full V4 parser
    record. This is a breaking change for callers that read article, content,
    relations, quality, or provenance from default output. Pass
    --full-json or output_style="full" to keep using the V4 record.
  • --schema-version is now accepted only with --full-json. Schema V2/V3 are
    compatibility modes for full output, not clean paper output.

Migration

  • If you want the new ingestion-friendly output, no migration is needed. Read
    paper.title, paper.abstract, paper.body, assets.images, and
    assets.tables.
  • If you want the old metadata-rich V4 structure, add --full-json on the CLI
    or pass output_style="full" in Python.
  • Switch to process_single_pmc_with_assets() or --with-images when you want
    image binaries on disk alongside the clean JSON.