API reference
The impunity library is based on three main core objects:
impunity wrapper accessible through
impunity.wrapper.impunity()
;An AST visitor defined in the class
impunity.visitor.Visitor
;Representation of AST nodes with
impunity.quantityNode
;
- impunity.visitor
Visitor
Visitor.add_func()
Visitor.generic_visit()
Visitor.get_annotation_unit()
Visitor.get_annotations()
Visitor.get_node_unit()
Visitor.node_convert()
Visitor.visit()
Visitor.visit_AnnAssign()
Visitor.visit_Assign()
Visitor.visit_Call()
Visitor.visit_ClassDef()
Visitor.visit_For()
Visitor.visit_FunctionDef()
Visitor.visit_ListComp()
Visitor.visit_Return()
Visitor.visit_comprehension()
- impunity.quantityNode
- impunity.wrapper.impunity