Skip to main content

walker

ModuleSource

The inspector and analyzer that walks through and processes the nested package and module members. Both the run-time object and the corresponding code will be analyzed.

Classes

Member
Description
ParserAbstractThe abstract class of a module parser.
PackageWalkerThe package iterative walker.

Functions

Member
Description
analyze_module_astAnalyze the coding structure (AST) of a module, and return the entity information detected in the code.
get_direct_submodulesGet the submodules/subpackages directly defined in a package.
is_direct_nonmoduleCheck whether a non-module object is directly defined in a module/package.
is_direct_moduleCheck whether a module/package is a direct member of another module/package.
is_direct_memberCheck whether a value is a direct member of another module/package.
is_main_moduleCheck whether a module is a __main__ module.
fast_importImport a package by its name.