Because writing documentation is for suckers.
The 'codeainator' is a Python package that streamlines automated code analysis and documentation generation through a command-line interface (CLI). It includes a setup script for easy configuration and a variety of functionalities, enabling users to scan project directories, generate summaries, and perform database operations, with enhanced analysis powered by the OpenAI API. The package also provides pre-commit hooks for code quality, along with templates for managing pull requests, bug reports, and tasks, thereby promoting clean coding practices. Overall, 'codeainator' aims to enhance software development workflows by automating routine tasks and fostering adherence to best practices in collaborative environments.
To use this tool you must have an OpenAI API key set to a OPENAI_API_KEY
environment variable on your system. Please see their documentation for more information: https://platform.openai.com/docs/api-reference/introduction
- Install Python (version 3.6 or higher) if it's not already installed. You can do this via Homebrew:
brew install python
- Clone the repository:
git clone https://github.com/your-repo/codeainator.git cd codeainator
- Install the required packages:
pip install -r requirements.txt
- Install Python (version 3.6 or higher) from the official website.
- Clone the repository using Git Bash or Command Prompt:
git clone https://github.com/your-repo/codeainator.git cd codeainator
- Install the required packages:
pip install -r requirements.txt
- Install WSL2 and a Linux distribution of your choice (e.g., Ubuntu) from the Microsoft Store.
- Open the WSL terminal and install Python:
sudo apt update sudo apt install python3 python3-pip
- Clone the repository:
git clone https://github.com/your-repo/codeainator.git cd codeainator
- Install the required packages:
pip install -r requirements.txt
- Install Python (version 3.6 or higher) using your package manager. For example, on Ubuntu:
sudo apt update sudo apt install python3 python3-pip
- Clone the repository:
git clone https://github.com/your-repo/codeainator.git cd codeainator
- Install the required packages:
pip install -r requirements.txt
Once you have completed the setup, you can use the 'codeainator' CLI to scan project directories, generate summaries, and manage database operations. Run the following command to see available options:
python -m codeainator.cli.py -h
This will provide you with details about the command-line options and functionalities available.
If you encounter issues during installation or while using the application, consider the following steps:
- Ensure dependencies are installed: Confirm that you have installed all the required packages listed in
requirements.txt
. - Verify Python version: 'codeainator' is designed for Python version 3.6 or higher. Check your version with:
python --version
- File permissions: If you face permission issues, ensure you have the correct permissions for the directories you are scanning or generating files in.
- File paths: Check that file paths you are entering are correct and exist.
- Seeking help: If you continue to experience problems, consider filing a bug report using the provided template in
.github/ISSUE_TEMPLATE/bug-report.md
. Include detailed information about the issue, including any error messages received.