Python etc / pydoc

pydoc

The script pydoc can be used to see documentationand docstrings from the console:

$ pydoc3 functools.reduce | cat
Help on built-in function reduce in functools:

functools.reduce = reduce(...)
    reduce(function, sequence[, initial]) -> value

    Apply a function of two arguments cumulatively to the items of a sequence,
    ...

Also, you can specify a port with -p flag, and pydoc will serve the HTML documentation browser on the given port:

$ pydoc3 -p 1234
Server ready at http://localhost:1234/
Server commands: [b]rowser, [q]uit
server>