Do you know if there\'s a Python library that generates statistics about code? I\'m thinking about pointing to a package and getting number of classes, functions, methods, docbl
Maybe Tahar can help, it displays statistics about how long each function, method, class and module are (in lines of code). However, since it's using the inspect module, it may run in unexpected ways if one of the module it analyzes launches a GUI or something like that.
I'll switch to using AST someday, although I don't know if AST can provide a service that is similar to inspect.getsourcelines() ?
(EDIT)
Mergou (the rewrite of tahar using the tokenize module) is in alpha, here's a video of it in action : http://www.youtube.com/watch?v=PI0iBZmInFU&feature=youtu.be