{ } Raw JSON

bundles / papyri latest / papyri / cli / debug / _select_bundle_object

function

papyri.cli.debug:_select_bundle_object

source: /papyri/cli/debug.py :80

Signature

def   _select_bundle_object ( bundle : Bundle object_path : str )  →  Node

Summary

Return the IR node addressed by object_path inside bundle.

Extended Summary

The path may carry a kind prefix (module:, docs:, examples:) selecting which of the bundle's collections to look in; a bare name is searched across api, narrative and examples in that order.

Raises KeyError with a human-readable message (listing the candidate keys) when no object matches.

Aliases

  • papyri.cli.debug._select_bundle_object