mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 22:07:15 +01:00
Runs a solution (python3, javascript, typescript) against statement examples in bubblewrap: no network, read-only root, scratch dir, rlimits and a per-example timeout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWYGW5NZL5uVpnqmNKo
21 lines
518 B
Python
21 lines
518 B
Python
"""Run a learner's solution against a problem's examples in a bubblewrap sandbox."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from code_runner._examples import parse_examples
|
|
from code_runner._model import CaseResult, Example, Limits, RunnerError
|
|
from code_runner._run import run
|
|
from code_runner._starter import Entry, extract_starter, parse_starter
|
|
|
|
__all__ = [
|
|
"CaseResult",
|
|
"Entry",
|
|
"Example",
|
|
"Limits",
|
|
"RunnerError",
|
|
"extract_starter",
|
|
"parse_examples",
|
|
"parse_starter",
|
|
"run",
|
|
]
|