module documentation

This module provides implementation of various Utilities functions and classes for finding local modules nad iterating over different objects(i.e., statements, child nodes and fields) within the provided node.

Class StmtIterator Undocumented
Class Unit Undocumented
Function find_local_modules Undocumented
Function get_path_by_extension Undocumented
Function iter_child_nodes Yield all direct child nodes of node, that is, all fields that are nodes and all items of fields that are lists of nodes.
Function iter_fields Yield a tuple of (fieldname, value) for each field in node._fields that is present on node.
Function iter_stmt_children Yield all direct child nodes of node, that is, all fields that are nodes and all items of fields that are lists of nodes.
Function UnitWalker Undocumented
def find_local_modules(import_smts): (source)

Undocumented

def get_path_by_extension(root_dir, num_of_required_paths, flag='.ipynb'): (source)

Undocumented

def iter_child_nodes(node): (source)

Yield all direct child nodes of node, that is, all fields that are nodes and all items of fields that are lists of nodes.

def iter_fields(node): (source)

Yield a tuple of (fieldname, value) for each field in node._fields that is present on node.

def iter_stmt_children(node): (source)

Yield all direct child nodes of node, that is, all fields that are nodes and all items of fields that are lists of nodes.

def UnitWalker(module_node): (source)

Undocumented