package documentation

A static analyzer for Python code.

Beniget provides a static over-approximation of the global and local definitions inside Python Module/Class/Function. It can also compute def-use chains from each definition.

Beniget provides three analyse:

  • Ancestors that maps each node to the list of enclosing nodes;
  • DefUseChains that maps each node to the list of definition points in that node;
  • UseDefChains that maps each node to the list of possible definition of that node.
Module __main__ Undocumented
Module beniget No module docstring; 0/4 variable, 6/9 functions, 0/1 exception, 0/2 class documented
Module ordered_set Copied from https://github.com/bustawin/ordered-set-37
Module version Undocumented

From __init__.py:

Class Ancestors Build the ancestor tree, that associates a node to the list of node visited from the root node (the Module) to the current node.
Class Def Model a definition, either named or unnamed, and its users.
Class DefUseChains locals: Dict[node, List[Def]], a mapping between a node and the list of variable defined in this node,
Class UseDefChains DefUseChains adaptor that builds a mapping between each user and the Def that defines this user:
Variable __version__ Undocumented
__version__: str = (source) ΒΆ

Undocumented