Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Software metric tool for Python

Tags:

python

I want a tool which can compute source code metrics such as lines of code, number of packages, classes, functions, cyclomatic complexity number, depth of inheritance tree etc. for my Python Code. I have tried pylint, but it didn't offer much metrics. pynocle seemed interesting but I dont know how to use it.

Can anyone give me some suggestions ?

Thanks in advance

like image 208
user671805 Avatar asked Nov 15 '11 13:11

user671805


2 Answers

PyGenie can do cyclomatic complexity. I have used it once before and it used to be Python-3 incompatible... haven't used it afterward. Maybe give it a shot?

like image 69
Ambidextrous Avatar answered Oct 18 '22 19:10

Ambidextrous


You can also take a look at SLOCCount.

like image 37
sateesh Avatar answered Oct 18 '22 17:10

sateesh