Python File Information Generator
This script reads all python files inside a directory (recursively) and generates a JSON data file for each python file. This JSON data file contains detailed information about the different objects declared in the python file like classes, functions, and variables.
Prerequisites
- Have Python 3.9 or higher installed. If you do not have python, install it from here.
How to use
- Download the script
- There are 4 variables
IGNORED_DIRS
,IGNORED_FILES
,BASE_DIR
,OUT_DIR
in the script which need to be modified as required
IGNORED_DIRS
: Names of directories to ignore when generating json data files.IGNORED_FILES
: Names of files to ignore when generating json data files.BASE_DIR
: This is the directory to recursively search and read python files.OUT_DIR
: This is the directory to output the json data files to.
- Run the script