Dawid Pankiewicz
Work

Python Grader

An autograder my AP CSP teacher uses with two classes.

Web app · TypeScript · In use

Students
~40 across 2 classes
Grading time
Seconds per submit
Load tested
24 students submitting at once
A student submission showing 2 of 3 tests passed.
The teacher's gradebook.
The assignment editor.

The problem

My AP CSP teacher graded Python by hand. Students waited days to find out their code was wrong.

What I built

Students write Python in the browser and press Submit. The server runs hidden tests and shows a grade within seconds. The teacher gets a gradebook, a CSV export for Schoology, and integrity signals for work that might not be the student's own.

The hard part

Running untrusted code from 40 teenagers on a server. Every submission runs in a fresh, locked-down process with no network, no file writes and no secrets, and there's a test suite of attacks it has to survive. The same Python runtime (Pyodide) runs in the browser and on the server, so code that works on Run works on Submit.

Stack

TypeScript, React, Fastify, PostgreSQL, Pyodide, Playwright and Vitest tests, GitHub Actions with a secret scan, deployed on Heroku.