Skip to content

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

@Aditya30ag

Description

@Aditya30ag

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions