Impunity
  • Getting started

API

  • API reference
    • impunity.visitor
    • impunity.quantityNode
    • impunity.wrapper.impunity

Annotations

  • String Annotations
  • The Annotated object

Advanced Topic

  • How Does It Work ?
  • Performance Analysis
  • Contribute to impunity
Impunity
  • API reference
  • View page source

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
    • QuantityNode
  • impunity.wrapper.impunity
    • impunity()
Previous Next

© Copyright 2023, Antoine Chevrot.

Built with Sphinx using a theme provided by Read the Docs.