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:
Ancestorsthat maps each node to the list of enclosing nodes;DefUseChainsthat maps each node to the list of definition points in that node;UseDefChainsthat 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 |
Copied from https://github.com/bustawin/ordered-set-37 |
| Module | version |
Undocumented |
From __init__.py:
| Class | |
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 | |
Model a definition, either named or unnamed, and its users. |
| Class | |
locals: Dict[node, List[Def]], a mapping between a node and the list of variable defined in this node, |
| Class | |
DefUseChains adaptor that builds a mapping between each user and the Def that defines this user: |
| Variable | __version__ |
Undocumented |