execution_id, fetch the result.
CLI
requirements.txt:
REST API
execution_id and a streaming URL for live output.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Submit Python code to Lyceum Cloud from the CLI or REST API
execution_id, fetch the result.
lyceum python run "print('hello from lyceum')" --machine cpu
requirements.txt:
lyceum python run script.py --machine gpu.a100 --requirements requirements.txt
curl -X POST https://api.lyceum.technology/api/v2/external/execution/streaming/start \
-H "Authorization: Bearer $LYCEUM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "print(1 + 1)",
"machine_type": "cpu"
}'
execution_id and a streaming URL for live output.
# Get the full execution record (status, stdout, stderr, result)
curl https://api.lyceum.technology/api/v2/external/execution/<execution_id> \
-H "Authorization: Bearer $LYCEUM_API_KEY"
# Get just the logs
curl https://api.lyceum.technology/api/v2/external/logs/execution/<execution_id> \
-H "Authorization: Bearer $LYCEUM_API_KEY"
