Search code examples
pythondocumentationpydocimdbpy

Reading Python Documentation for 3rd party modules


I recently downloaded IMDbpy module.. When I do,

import imdb
help(imdb)

i dont get the full documentation.. I have to do

im = imdb.IMDb()
help(im)

to see the available methods. I dont like this console interface. Is there any better way of reading the doc. I mean all the doc related to module imdb in one page..


Solution

  • Use pydoc

    pydoc -w imdb
    

    This will generate imdb.html in the same directory.


    pydoc -p 9090 will start a HTTP server on port 9090, and you will be able to browse all documentation at http://localhost:9090/