Write Python file
fastero_write_python_fileCreate or overwrite one text file in a Python project; the answer does not say which it was. Pass the file text; it is encoded for transport. Each run reads the latest version. In a local project every stored file goes into each run; in one linked to a repository only the entrypoint file and requirements.txt (or .in) written here reach a run, and nothing is committed to the repository. For a notebook’s cells, fastero_write_notebook; for a Streamlit app’s files, fastero_write_streamlit_file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path inside the project, e.g. 'main.py' or 'src/report.py'; folders in it need no creating. A local project runs 'main.py' by default. | |
| content | Yes | The file text, which may be empty. Replaces the file at that path entirely. | |
| projectId | Yes | The project’s id, from fastero_list_projects. | |
| pythonProjectId | Yes | A Python project’s id, from fastero_list_python_projects. |