{
  "__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": "Print the contents of a CBOR file in human-readable form."
            }
          ]
        }
      ],
      "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": "Accepts: - An absolute or relative path to any .cbor file. - A shorthand path relative to ~/.papyri/data/ — the .cbor extension is   appended automatically if the file is not found without it."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "When the file lives inside the ingest tree (~/.papyri/ingest/) the command also prints backrefs from the graph store."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "When the file lives inside the data tree (~/.papyri/data/) the command prints the bundle context (package, version, kind) derived from the path."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Tries to decode using the papyri IR tag registry first; falls back to plain cbor2 if the file does not contain tagged IR objects."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "A "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": ".papyri"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " artifact (output of "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "papyri pack"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ") is also accepted: the artifact is gunzipped + decoded to a "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "Bundle"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " Node and pretty- printed in place of the file-tree-walk path."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Pass a second "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "object_path"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " argument to print a single object from a "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": ".papyri"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " artifact as JSON on stdout, with no other output, so it can be piped into tools like "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "jq"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "      "
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": "papyri debug numpy.papyri module:numpy.linspace | jq .signature",
          "execution_status": null
        }
      ],
      "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/debug.py",
  "item_line": 117,
  "item_type": "function",
  "aliases": [
    "papyri.debug"
  ],
  "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": "path",
        "annotation": "Annotated[str, typer.Argument(help=\"Path to a bundle IR file to inspect (.json for data-tree files, .cbor for ingest-tree files, .papyri for packed artifacts). Can be an absolute/relative path, or a shorthand relative to ~/.papyri/data/ (e.g. 'numpy_2.3.5/module/numpy.linspace'). The extension is added automatically when absent.\")]",
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": {
          "__type": "Empty",
          "__tag": 4031
        }
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "object_path",
        "annotation": "Annotated[str | None, typer.Argument(help=\"Optional: name of a single object inside a .papyri artifact to print as JSON on stdout (for piping into jq and friends). May carry a kind prefix: 'module:numpy.linspace', 'docs:intro', 'examples:foo'. A bare name searches api, narrative, then examples. All human-readable context is suppressed so stdout is pure JSON.\")]",
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "None"
      }
    ],
    "return_annotation": "None",
    "target_name": "debug"
  },
  "references": null,
  "qa": "papyri.cli.debug:debug",
  "arbitrary": [],
  "local_refs": []
}