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 | |
|---|---|
| ParserAbstract | The abstract class of a module parser. |
| PackageWalker | The package iterative walker. |
Functions
| Member | |
|---|---|
| analyze_module_ast | Analyze the coding structure (AST) of a module, and return the entity information detected in the code. |
| get_direct_submodules | Get the submodules/subpackages directly defined in a package. |
| is_direct_nonmodule | Check whether a non-module object is directly defined in a module/package. |
| is_direct_module | Check whether a module/package is a direct member of another module/package. |
| is_direct_member | Check whether a value is a direct member of another module/package. |
| is_main_module | Check whether a module is a __main__ module. |
| fast_import | Import a package by its name. |