pyclbr — Class Browser — PyMOTW 3
pyclbr can scan Python source to find classes and stand-alone functions. The information about class, method, and function names and line numbers is gathered using tokenize without importing the code.
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.