Generate a file from code and save it
ParseBird
Runs a Python snippet that writes a CSV file (`squares.csv`) during the run and preserves it in the run's key-value store via `saveFiles`. The snippet also prints a small JSON summary. Use this pattern to produce reports, exports or generated assets from code. Adjust `code` and the `saveFiles` list.
Input
Output fields
Sign up on Apify or log in
The AI Code Runner Sandbox Actor is ready to run with the inputs already set for "Generate a file from code and save it". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Generate a file from code and save it" task
The AI Code Runner Sandbox Actor will start running based on the input automatically. You can also change all the input fields, like language, code, and more, to match your specific use case.
Receive the "Generate a file from code and save it" output
Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as status, language, exit code, and more.
Integrate into your workflow
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Generate a file from code and save it" task via API.
