ScanPyImports scans directories for import statements in Python scripts and Jupyter notebooks, providing tools to summarize and visualize the import statements across your projects.
Cloud plot | Spiral plot |
---|---|
- Directory Scanning:
- Recursively scans directories to locate all Python files (
.py
) and Jupyter notebooks (.ipynb
), collecting import statements from the code. - Employs a set of regular expressions to find and parse import statements within the scripts.
- Recursively scans directories to locate all Python files (
- Import Statement Data:
- Organizes import data using DataFrames and conducts basic analyses.
- Data Visualization:
- Provides tools to visualize import data with various plotting options.
- Currently includes spiral plots and word clouds of the import statements.
ScanPyImports requires the following packages:
- pandas
- matplotlib
- numpy
- wordcloud
- pillow
- nbformat
You can either:
-
download the source code here.
-
or clone the repo:
git clone https://github.com/lennon-c/ScanPyImports.git
-
Data
- Data Getting the DataFrame of your imported modules.
-
Vizualization
-
Viz. Customization
::: ScanPyImports