A web application that helps explain code snippets in various programming languages and translate code between languages using a local Ollama model.
- Code explanation in multiple programming languages
- Code translation between different programming languages
- Modern, user-friendly Streamlit interface
- Local processing using Ollama models
simple_coding_helper/
├── src/
│ ├── core/
│ │ ├── __init__.py
│ │ ├── language_helper.py
│ │ └── ollama_client.py
│ ├── ui/
│ │ ├── __init__.py
│ │ └── app.py
│ └── main.py
├── requirements.txt
└── README.md
- Python 3.8 or higher
- Ollama installed and running locally
- Required Python packages (install using
pip install -r requirements.txt)
- Clone the repository:
git clone https://github.com/yourusername/simple-coding-helper.git
cd simple-coding-helper- Install dependencies:
pip install -r requirements.txt- Make sure Ollama is running locally:
ollama serve- Start the application:
python src/main.py- Open your web browser and navigate to:
http://localhost:8501
- Use the application:
- Enter code in the text area
- Choose between explanation and translation modes
- For translation, select source and target languages
- Click the respective button to process your request
- Python
- SQL
- JavaScript
- Java
- C++
- HTML
- CSS
- Ruby
- PHP
- Go
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.