{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {
    "Notes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Raises": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Yields": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Methods": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Returns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Validate a DocBundle directory and write a single deterministic "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": ".papyri"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " artifact (gzipped canonical-CBOR "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "Bundle"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " Node)."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Receives": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warnings": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Attributes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Extended Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Running pack twice on the same input produces byte-identical output."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Bulk mode: if no "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "bundle_dir"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is given, every directory under "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "~/.papyri/data/"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is packed in turn and the artifacts are written alongside them."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Other Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    }
  },
  "_ordered_sections": [
    "Summary",
    "Extended Summary",
    "Parameters",
    "Attributes",
    "Methods",
    "Returns",
    "Yields",
    "Receives",
    "Other Parameters",
    "Raises",
    "Warns",
    "Warnings",
    "Notes"
  ],
  "item_file": "/papyri/cli/pack.py",
  "item_line": 13,
  "item_type": "function",
  "aliases": [
    "papyri.pack"
  ],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": {
    "__type": "SignatureNode",
    "__tag": 4029,
    "kind": "function",
    "parameters": [
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "bundle_dir",
        "annotation": "Annotated[Path | None, typer.Argument(help='Path to a DocBundle directory (output of `papyri gen`). If omitted, pack every bundle under ~/.papyri/data/.')]",
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "None"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "output",
        "annotation": "Annotated[Path | None, typer.Option('--output', '-o', help=\"Output file path or directory (single-bundle mode only). If a directory, '<module>-<version>.papyri' is appended. Default: '<module>-<version>.papyri' next to each bundle directory (under ~/.papyri/data/ in bulk mode, or in the current directory in single-bundle mode).\")]",
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "None"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "verbose",
        "annotation": "Annotated[bool, typer.Option('--verbose', '-v', help='Show per-step packing progress (layout check, per-directory item counts, encode/compress sizes).')]",
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "False"
      }
    ],
    "return_annotation": "None",
    "target_name": "pack"
  },
  "references": null,
  "qa": "papyri.cli.pack:pack",
  "arbitrary": [],
  "local_refs": []
}