File size: 779 Bytes
94193b5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | import { ProjectTemplate } from '../../project-templates';
import { PYTHON_DOMAIN_PROMPT } from '@/lib/llm/prompts/python';
export const PYTHON_STARTER_PROJECT_TEMPLATE: ProjectTemplate = {
name: 'Starter (Python)',
description: 'Minimal Python script with Pyodide (browser-based CPython)',
directories: [],
files: [
{
path: '/main.py',
content: `# Hello World — Python on Pyodide
# Edit this file and it will auto-execute in the Terminal panel.
def greet(name: str) -> str:
return f"Hello, {name}!"
print(greet("World"))
print()
print("Python is running in your browser via Pyodide.")
print("Try editing this file — it re-runs automatically on save.")
`
},
{
path: '/.PROMPT.md',
content: PYTHON_DOMAIN_PROMPT
}
]
};
|