List of modules available for import inside Python?

Fredrik Lundh fredrik at
Thu Aug 28 08:04:53 CEST 2008

ssecorp wrote:

> Is there a way to view all the modules I have available for import
> from within Python?
> Like writing in the interpreter:
> import.modules

there's a helper script in the 2.5 source code kit that locates all 
existing standard modules:

to get all modules, remove the for-loop that follows after the comment 
"get rid of site packages".

also see:


More information about the Python-list mailing list