How narendra2904/jntuh-backend works
Backbenchers’ repository is the FastAPI results backend: a hall-ticket request checks Redis, falls back to SQLite, and on a miss scrapes JNTUH, normalizes the semester results, then persists them. The scraper uses exam-code and branch-code reference data and a bundled college PDF. The README also describes a separate frontend with analytics, AI, and ecosystem features; those are represented only as an external client, not as backend modules. Relationships shown below are supported by the excerpts or README; the frontend’s internal behavior is outside this tree.
Main entry points: scraper.py Result scraper · main.py Results API · exam_codes.py Exam codes · branch_codes.py Branch codes
Components 10
API orchestration
- Results API
main.py
Result acquisition
- Result scraper
scraper.py - Exam codes
exam_codes.py - Branch codes
branch_codes.py - College directory
data/btech_mba_centers_reviewed.pdf
Persistence
- Redis cache
cache.py - SQLite results
database.py
Other components
- Student
- Frontend portal
- JNTUH results
Connections 9
- Student → Frontend portal: requests results
README.md - Frontend portal → Results API: proxies requests
README.md - Results API → Redis cache: checks / writes
main.py - Results API → SQLite results: reads / saves
main.py - Results API → Result scraper: scrapes on miss
main.py - Result scraper → JNTUH results: fetches results
scraper.py - Result scraper → Exam codes: iterates codes
scraper.py - Result scraper → Branch codes: looks up branch
scraper.py - Result scraper → College directory: loads directory
scraper.py