If you use ipython , this is an improved interactive Python shell (aka REPL "), you can enter import (note the space at the end), and then press the [TAB] key to get a list of the modules to be imported.
As indicated in this SO entry , you will have to reset the hash of the modules after installing (specific?) New ones. You probably don't need to worry about that.
If you are not using ipython and you have not tried it, it might be worth checking out. This is much better than the base Python shell or just about any other REPL I used.
ipython installation
If you are using linux, most likely an ipython package that you can install using system management tools. Others will want to follow these instructions .
If your installation route requires the use of easy_install , you can use pip instead. pip little smarter than easy_install , and does a better job of tracking file locations. This is very useful if you want to remove ipython .
Package listing
Please note that only modules are listed in the above tip. For a list that also includes packages containing modules, you can do from + [TAB] . An explanation of the difference between packages and modules can be found in the "Modules" section of the useful official Python tutorial .
#rtfm
As an added note, if you are very new to python, your time could be better spent looking at the standard documentation, than just choosing modules based on their name. The Python core documentation is well written and well organized. Organizational groups - Access to files and directories , Data types, etc. used in the documentation for library documentation are not always obvious from the names of modules / packages and are not actually used in other places, but serve as a valuable training tool.
intuited Oct 17 '10 at 8:37 2010-10-17 08:37
source share