Abstract Syntax Trees in Python
The
sourceast
module in the Python standard library can be used to create, visit, and modify AST related to Python source code. (…) Even if it is part of standard library since a long time, it is not common to use it directly. Rather, you might have used it indirectly as popular tools use it under-the-hood.