Search code examples
pythoncode-metrics

Python: code statistics


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, docblock lines etc.

It could eventually include useless stuff like number of lambdas or other crazy statistics, just for fun.


Solution

  • you can have a look at Pymetrics, or check other tools enumerated there