Python modulefinder Module
Example
Verify the ModuleFinder class is available:
import modulefinder
print(hasattr(modulefinder, "ModuleFinder"))
Try it Yourself »
Definition and Usage
The modulefinder module determines the set of modules imported by a script.
Use it to analyze dependencies for packaging, optimization, or static checks.
Members
Member | Description |
---|---|
ModuleFinder | Class to scan Python scripts for imports and dependencies. |
ADD_PACKAGEPATH() | Helper to add package paths (used internally). |