This project provides a tool to generate comprehensive documentation for all Python files in a given repository and compile them into a PDF. It uses an AI model to generate documentation and the fpdf library to create the PDF.
- Recursively scans a specified directory for Python files.
- Generates documentation for each Python file using an AI model.
- Compiles the documentation and source code into a structured PDF.
- Python 3.x
fpdflibrarytqdmlibraryrequestslibrary
Install the necessary Python libraries using:
pip install fpdf tqdm requests- Clone the repository to your local machine.
- Set the
root_dirvariable inmain()to the path of your target repository. - Run the script:
python generate_documentation.pyThe output PDF will be saved in the specified directory.
This project is licensed under the MIT License - see the LICENSE file for details.
