Create Python project
fastero_create_python_projectCreate a Python project: a workspace of .py files with entrypoints, each run as a script on a machine of its own, by hand or on a schedule, with its log kept and the files a run writes saved back. It suits repeatable jobs and report generators. sourceType 'local' (the default) starts it with main.py, .env.sample and README.md and an entrypoint 'main' that runs main.py, which fastero_write_python_file replaces. sourceType 'git' links a repository, read when its files are listed or it first runs; one that cannot be read without signing in (a private repository) needs its Git provider or token chosen, which is done in the Fastero app, so such a project is made there. A project linked here starts with no entrypoint, and fastero_ensure_python_entrypoint adds one; one linked in the Fastero app starts with one for each of its scripts. Two projects may share a name. Returns the project with its _id. For analysis read in place, fastero_create_notebook; for an app in the browser, fastero_create_streamlit_app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| git | No | Required when sourceType is 'git': { repoUrl, branch, subDirectory }. branch defaults to main; subDirectory is a folder inside the repository holding the code. | |
| name | Yes | The Python project’s name, as people will see it. | |
| projectId | Yes | The project’s id, from fastero_list_projects. | |
| sourceType | No | 'local' for a workspace you write files into (the default), or 'git' to run code from a repository. | |
| description | No | Optional: what it does. |