I find PyDoc useful for looking up Python documentation at the shell, but it has one handicap. I can only lookup information if I know the full module and member name. It is not possible to just do a string search on all possible module and member names in the Python standard documentation.
That is what this tool PyDocSearch does. It does a string search on the online Python documentation and shows the resulting URL for clicking and viewing.
$ python3 -m pip install pydocsearch
$ pydocsearch foobar
Tried with: PyDocSearch 1.0.3 and Python 3.8.10