using ptags.py for tag file

  1. Place the ptags.py file in your $PATH.
  2. From the project directory containing your Python project, run the following command:
find . -name "*.py" -print | xargs ptags.py

I was previously using various inefficient methods to achieve this. The ptags.py script is similar to Ctags Ctags is a programming tool that generates an index file (or tag file) of names found in source and header files of various programming languages to aid code comprehension. Depending on the language, functions, variables, class members, macros and so on may be indexed. These tags allow definitions to be quickly and easily located by a text editor, a code search engine, or other utility. Alternatively, there is also an output mode that generates a cross reference file, listing information about various names found in a set of language files in human-readable form. but specifically designed for Python code.