MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / parser

Function parser

scripts/fetch_pdf.py:21–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20
21def parser() -> argparse.ArgumentParser:
22 p = argparse.ArgumentParser(description=__doc__ or "fetch pdf")
23 p.add_argument("--input", required=True, help="Metadata JSON path, JSON string, or raw paper reference.")
24 p.add_argument("--output", default="", help="Output path for JSON status.")
25 p.add_argument("--paper-id", default="", help="Canonical paper id if already known.")
26 p.add_argument("--dest-dir", default="", help="Directory for downloaded PDFs.")
27 return p
28
29
30def is_pdf_content(data: bytes) -> bool:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected