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

    Variable astConst

    ast: ASTFactory = ...

    Factory object exposing one builder method per supported AST node type, offering a lighter-weight alternative to constructing raw node objects by hand. Every produced node defaults lineno to 1 and col_offset to 0.

    import { ast } from "py-ast";

    // Build `print("hi")`
    const call = ast.Call(ast.Name("print"), [ast.Constant("hi")]);