A FastAPI server backend that powers the debugging functionality for the Pippy project. This backend analyzes Python code and returns helpful debugging suggestions using an LLM.
- FastAPI backend
- LLM-powered debugging for Python programs
/debugendpoint with real-time suggestions- Context mode: explains code in a kid-friendly way
git clone https://github.com/yourusername/pippy-debugger-backend.git
cd pippy-debugger-backendRename .example.env → .env and add your GOOGLE_API_KEY
GOOGLE_API_KEY = your_api_key_herepip install -r requirements.txtuvicorn main:app --host 0.0.0.0 --port 8000POST
/debug?code={your_python_code}&context={true|false}
code: Python code snippet (string)context:true | false→ enable kid-friendly explanations
curl -X POST "http://localhost:8000/debug?code=How%20do%20I%20create%20a%20Python%20class&context=False"{
"answer": "Debugging suggestions for your python code....",
}After running the server, open in your browser
http://localhost:8000/
You'll see a hello message from Pippy-Debugger
This project is licensed under the GNU Affero General Public License v3.0
This project was developed as part of DMP 2025 by Harshit Verma.