AOSSIE-Org/EduAid

[GOOD FIRST ISSUE]: main.py too large and hard to maintain

Open

#603 opened on Mar 18, 2026

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (427 forks)auto 404
good first issue

Repository metrics

Stars
 (172 stars)
PR merge metrics
 (PR metrics pending)

Description

Context

The main.py file has grown to ~800 lines with multiple responsibilities.

Problems

  • Difficult to navigate and maintain
  • Multiple unrelated classes in a single file
  • Hard to test and extend

Affected Files

  • backend/Generator/main.py

What Needs to Be Done

  • Split large main.py into focused modules:
    • question_generators.py
    • answer_predictor.py
    • utilities.py
    • advanced_qa.py
  • Updated server.py imports to use new structure
  • Preserved all existing logic and functionality

Resources

Getting Started

  • I have joined the Discord server and will post updates there
  • I have read the Contribution Guide
  • I understand this issue is assigned on a first-come, first-served basis

Contributor guide