FastAPI + Celery backend for queued code execution with Docker sandboxing.
- Open
project_guide.htmlin a browser for a full beginner-friendly explanation of components. - Open
file_dependency.htmlin a browser for an in-depth breakdown of how files flow and depend on each other. - Open
real_world_restaurant.htmlin a browser for a deep real-life restaurant analogy with an interactive dependency graph built using Cytoscape.js (no Mermaid).
- python
- js (or javascript)
- java
- c
- cpp
- Build sandbox image and start all services:
./run.shor on Windows PowerShell:
./run.ps1- API will be available at
http://localhost:8000.
Queue execution and return task id.
Example body:
{
"language": "python",
"code": "print(input())",
"stdin": "hello",
"timeout_seconds": 5
}Get task status and result.
Queue and wait for completion for up to wait_timeout seconds.
Example body:
{
"language": "cpp",
"code": "#include <iostream>\nint main(){std::string s; std::getline(std::cin,s); std::cout<<s;}",
"stdin": "hello cpp",
"timeout_seconds": 5,
"wait_timeout": 20
}