Autobot Code Compiler is a PyQt5-based application designed to compile and run Python and Java code within a customized Night Owl-themed GUI. It also integrates with Google Generative AI for additional assistance in generating code or explaining the code logic.
- Python and Java Compiler: Compile and execute Python and Java code with a click.
- Code Editor with Night Owl Theme: A custom-themed QScintilla-based editor with syntax highlighting.
- AI Integration: Google Generative AI integration allows you to generate, evaluate, or ask questions about code directly within the application.
- Dynamic Output Display: View both compilation output and AI responses in a structured format.
- Progress Tracking: Real-time progress updates while running or compiling code.
-
Clone the Repository (or download the code directly):
git clone https://github.com/sandeepkasturi/autobot-Code-Editor/.git cd autobot-code-editor
-
Install Dependencies: Install all necessary Python packages from the
requirements.txt
file using pip:pip install -r requirements.txt
-
Set up API Key: Update the API key for Google Generative AI in the code:
configure(api_key="YOUR_GOOGLE_API_KEY")
-
Run the Application: Start the application by running:
python app.py
- Select the programming language (Python or Java) from the dropdown.
- Write or paste your code into the editor.
- Click "Compile and Run Code" to execute and see the output on the right.
- To leverage the AI-powered code generator, switch to the AI Code Generator tab, enter a prompt, and click "Ask AI."
- Use "Copy Code" or "Insert Code" for generated code directly within your code editor.
- PyQt5: GUI toolkit for the application's front-end components.
- QsciScintilla: Provides syntax highlighting for the Python and Java code editor.
- google-generativeai: Accesses the Google Generative AI API to provide real-time code generation and explanations.
This project is licensed under the GNU License. Feel free to customize and distribute!
- Ensure your internet connection is stable for AI generation.
- For Java compilation, ensure
javac
andjava
commands are accessible in your environment variables (PATH).
Make sure you replace "YOUR_GOOGLE_API_KEY"
in the 'app.py' with the actual API key.
Drive Link: AutoBot Code Editor]
MediaFire Link: https://www.mediafire.com/file/hnm70pfbwaq7fi8/AutoBot+Code+Editor.exe/file