Published May 19, 2022 | Version v1
Presentation Open

Inspect4py: A Knowledge Extraction Framework for Python Code Repositories (MSR2022 presentation)

  • 1. University of St Andrews
  • 2. Universidad Politécnica de Madrid


Abstract of the paper accepted at Mining Software Repositories, 2022.

This work presents inspect4py, a static code analysis framework designed to automatically extract the main features, metadata and documentation of Python code repositories. Given an input folder with code, inspect4py uses abstract syntax trees and state of the art tools to find all functions, classes, tests, documentation, call graphs, module dependencies and control flows within all code files in that repository. Using these findings, inspect4py infers different ways of invoking a software component. We have evaluated our framework on 95 annotated repositories, obtaining promising results for software type classification (over 95% F1-score). With inspect4py, we aim to ease the understandability and adoption of software repositories by other researchers and developers



Files (1.7 MB)

Name Size Download all
1.7 MB Preview Download