ishaAtif/python-code-reviewer
0
๐ Python Code Reviewer
An AI-powered Python code review tool that analyses your code across four dimensions.
โจ Features
- ๐ Bug Detection โ Finds bugs, edge cases and risky patterns with line numbers
- โฑ๏ธ Complexity Analysis โ Time and space complexity with plain English explanation
- ๐๏ธ OOP Suggestions โ Design improvement recommendations
- โจ Auto Rewrite โ Clean, improved version of your code
๐ Live Demo
๐ Try it on HuggingFace Spaces
๐ ๏ธ Tech Stack
โ๏ธ Run Locally
# Clone the repo
git clone https://github.com/isha-atif-dev/python-code-reviewer.git
cd python-code-reviewer
# Install dependencies
pip install -r requirements.txt
# Add your Claude API key
echo "ANTHROPIC_API_KEY=your_key_here" > .env
# Run the app
streamlit run app.py๐ Project Structure
python-code-reviewer/
โโโ app.py # Streamlit frontend
โโโ reviewer.py # Claude API logic
โโโ prompts.py # Prompt templates
โโโ requirements.txt # Dependencies
โโโ Dockerfile # HuggingFace deployment
โโโ .gitignore # Ignores .env file๐ Note
Never commit your .env file. Your API key is protected via .gitignore.
