Skip to content Skip to sidebar Skip to footer

Python Static Code Analysis Tools - Code Analysis (preliminary Research Question)

Disclaimer: I've just started researching this area/domain of knowledge; so I have no idea what exactly it's called; but through a google search, I believe it has to do with (stati

Solution 1:

Given a python code - file - script - module - package. Is there a tool that can produce a report out of it detailing: how many classes are used...

There cannot be an exact tool for that, since Python has an eval primitive.

When that primitive is executed, the set of classes or functions of your Python program can increase.

Be aware of Rice's theorem.

Consider using abstract interpretation and type inference techniques in your Python static analyzer.

Consider also using (painfully) Frama-C on the source code (the code written in C) of the Python interpreter. With a lot of work, Frama-C could be extended to analyze Python source code.

Read also recent proceedings of ACM SIGPLAN conferences.


Post a Comment for "Python Static Code Analysis Tools - Code Analysis (preliminary Research Question)"