py-ast - v1.16.0
    Preparing search index...

    Function parseFile

    Parser entry points and location-manipulation helpers.

    • parse / parseFile — parse Python source (or a file on disk) into an AST.
    • literalEval — safely evaluate a literal expression node, mirroring ast.literal_eval.
    • fixMissingLocations — fill in missing lineno/col_offset info on a hand-built tree by copying it from parent nodes.
    • copyLocation — copy location info from one node to another.
    • incrementLineno — shift every line number in a tree by an offset.
    • ParseOptions — options accepted by parse.
    • Parses Python source code from a file path. Not yet implemented: this is a Node.js-oriented placeholder — read the file's contents yourself and pass them to parse instead.

      Parameters

      • _filename: string

        Path to the Python source file (currently unused).

      • _options: ParseOptions = {}

        Parsing options; see ParseOptions (currently unused).

      Returns Module

      Never returns.

      Always — this function is not implemented.