user671805
user671805

Reputation: 602

Software metric tool for 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

Upvotes: 12

Views: 2002

Answers (3)

mirhossein
mirhossein

Reputation: 737

try radon, It calculate Cyclomatic Complexity, Maintainability Index and Raw metrics like LOC, SLOC and...

Upvotes: 0

sateesh
sateesh

Reputation: 28663

You can also take a look at SLOCCount.

Upvotes: 1

Ambidextrous
Ambidextrous

Reputation: 820

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?

Upvotes: 1

Related Questions