Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Simple Coding Helper

A web application that helps explain code snippets in various programming languages and translate code between languages using a local Ollama model.

Features

  • Code explanation in multiple programming languages
  • Code translation between different programming languages
  • Modern, user-friendly Streamlit interface
  • Local processing using Ollama models

Project Structure

simple_coding_helper/
├── src/
│   ├── core/
│   │   ├── __init__.py
│   │   ├── language_helper.py
│   │   └── ollama_client.py
│   ├── ui/
│   │   ├── __init__.py
│   │   └── app.py
│   └── main.py
├── requirements.txt
└── README.md

Prerequisites

  • Python 3.8 or higher
  • Ollama installed and running locally
  • Required Python packages (install using pip install -r requirements.txt)

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/simple-coding-helper.git
cd simple-coding-helper
  1. Install dependencies:
pip install -r requirements.txt
  1. Make sure Ollama is running locally:
ollama serve

Usage

  1. Start the application:
python src/main.py
  1. Open your web browser and navigate to:
http://localhost:8501
  1. 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

Supported Languages

  • Python
  • SQL
  • JavaScript
  • Java
  • C++
  • HTML
  • CSS
  • Ruby
  • PHP
  • Go

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages