An interactive web application to analyze, format, and evaluate Python code quality using:
- 🧹
flake8for linting - 🎨
blackfor formatting - 📊
radonfor complexity analysis - 🌐
Streamlitfor the web UI
✅ Paste or upload .py files
✅ Lint code using flake8 (PEP8 checks)
✅ Format code with black (auto cleanups)
✅ Analyze code complexity with radon
✅ Download the formatted version
✅ Simple, intuitive Streamlit GUI
Install the dependencies:
pip install -r requirements.txtRun the Streamlit app locally:
streamlit run app.pyThen open your browser at http://localhost:8501
.
├── app.py # Streamlit frontend
├── utils.py # Backend logic (linting, formatting, analysis)
├── requirements.txt # Dependencies
└── README.md # Project overviewThis tool is perfect for:
- Students learning clean code practices
- Developers reviewing Python code quality
- Teams integrating static analysis into review pipelines
A simple and powerful web-based tool to convert any PDF document into spoken audio (MP3) using Python + Flask + gTTS. Upload your PDF, convert it into speech, and download the audiobook—all from your browser!
✅ Upload any .pdf file
✅ Extract and clean text from the PDF
✅ Convert the text into speech using gTTS
✅ Download the result as an .mp3 file
✅ Beautiful HTML frontend (no Tkinter!)
| Layer | Tool |
|---|---|
| Frontend | HTML, CSS |
| Backend | Flask (Python) |
| PDF Extraction | PyMuPDF (fitz) |
| Text-to-Speech | gTTS |
| Audio Handling | pydub |
| Audio Playback | HTML5 or download |
pdf-to-audiobook-converter/
│
├── app.py # Flask backend
├── requirements.txt # All dependencies
├── templates/
│ └── index.html # HTML frontend
├── static/
│ └── style.css # Optional CSS styles
├── uploads/ # Temporarily stores uploaded PDFs
└── output/ # Stores generated MP3 files
Install all required packages:
pip install flask PyMuPDF gTTS pydub🚀 Run the App
python app.pyhttp://localhost:5000
- Upload a .pdf file via the browser.
- PyMuPDF extracts and cleans text from the pages.
- gTTS converts the text to speech.
- The user downloads the resulting .mp3 file.
Created by Jai Ganesh H! Inspired by the idea of accessibility and learning through listening.