Is Python documentation browser as good as railsapi.com

I find the official Python documentation a nightmare for navigation, but I love railsapi . Does anyone know of a browser for documentation on the Python standard library with similar functions for railsapi? In particular, the sidebar of the class browser and real-time search.

EDIT: I am familiar with pydoc, and this has not improved much compared to online IMO docs.

+6
source share
4 answers

iPython , an interactive Python shell replacement (read: raise) includes an ?? operator which gives you a convenient listing of pydoc information.

For instance:

 In [5]: eval?? Type: builtin_function_or_method Base Class: <type 'builtin_function_or_method'> String Form: <built-in function eval> Namespace: Python builtin Docstring [source file open failed]: eval(source[, globals[, locals]]) -> value Evaluate the source in the context of globals and locals. The source may be a string representing a Python expression or a code object as returned by compile(). The globals must be a dictionary and locals can be any mapping, defaulting to the current globals and locals. If only globals is given, locals defaults to it. 

This may not be what you are looking for, but it is a great way to interact with Python documents.

+3
source

Yes, there is an awesome documentation browser for Python, Django, JavaScript, iOS, etc. Dash This is for OS X only. You can download it from the Mac App Store. If you have a Mac, you will like it.

+1
source

There is also a cross-platform open source dash alternative: Zeal

It works with a global shortcut (Alt + Space), has instant search, supports many document formats and libraries (django, numpy, scipy, six, ...) and other languages.

+1
source

I like pdoc . If you install pygments, this will even provide syntax highlighting. Just run it through pdoc --http and open localhost:8080 in your browser.

0
source

Source: https://habr.com/ru/post/892542/


All Articles