MUSA Graderv0.1.0

API reference

API reference

Every public class, function and constant in the grader and assignments packages, generated from the source docstrings. If you are driving the grader from Python, start with grader.service.GradingService — it is the only entry point the Streamlit UI uses.

Quick example

from grader import GraderSettings, GradingService

settings = GraderSettings(execution_mode="docker",
                          shared_data_paths=["examples/data/zillow_zhvi.csv"])
service = GradingService.from_rubric_path("rubrics/hw1.yaml", settings)

for problem in service.preflight():
    print("warning:", problem)

loaded = service.load_submissions("examples/submissions")
session = service.run(loaded.candidates)

for result in session.ordered_results():
    print(result.student_id, result.total_score, "/", result.max_score,
          "review" if result.needs_review else "")
print("saved to", session.root)

Package#

Engine#

Execution#

Evidence#

Assignments#