Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Code Analyzer

Analyze the structure of any Python project in seconds.
Find core modules, orphans, import cycles, and dead functions.

Features

  • Core files — which modules are imported the most
  • Orphans — files nobody imports (candidates for deletion)
  • Dead functions — functions defined but never called
  • Import cycles — circular dependencies between modules

How it works

Fully offline. Parses Python source code with ast module, builds an import graph, and runs graph algorithms (centrality, cycle detection).

Installation

git clone https://github.com/Nekeos/code-analyzer.git cd code-analyzer pip install networkx # optional, for cycle detection

Usage

python cli.py /path/to/python/project python cli.py /path/to/python/project --detail

Requirements

Python 3.8+ networkx (optional)

Structure

code-analyzer/ core.py # parser and analyzer cli.py # command-line interface README.md # this file

License

MIT

About

Python project structure analyzer. Find core files, orphans, cycles, and dead code.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages