Python sandbox for generated CSV reports
Created by
Stas Persiianenko
Run Python report code, save a generated CSV to Apify storage, and return a structured execution record for automation workflows.
AI Code Runner Sandboxautomation-lab/ai-code-runner-sandbox
Status
Language
Exit code
Duration (ms)
+6 fieldsTextNumberBooleanListObject
Input
🧩 Runtime language(required):python
Code(required):import csv, json, sys
rows=json.load(sys.stdin)['rows']
with open('report.csv','w',newline='') as f:
w=csv.DictWriter(f,fieldnames=['name','score']); w.writeheader(); w.writerows(rows)
print(json.dumps({'rowsWritten':len(rows)}))
Standard input:[object Object]
Parse stdout as JSON:true
📁 Generated files to save:report.csv
Saved-file limit (bytes):100000
⏱️ Execution timeout (seconds):5
Output fields
Status
Language
Exit code
Duration (ms)
Timed out
Standard output
Standard error
Parsed result
Saved files
Executed at
Sign up on Apify01
Create your Apify account to access the AI Code Runner Sandbox.
Start the run02
The Actor will start running based on the input automatically.
Receive the output03
Monitor the progress in real-time. You will be notified as soon as your dataset is complete and ready for review.
Integrate into your workflow04
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow.
