setup_python_app
Provision and configure a complete Python web app (Flask, Django, FastAPI, or WSGI) with Passenger and .htaccess routing on cPanel.
Instructions
Provision and configure a complete Python application (Flask, Django, FastAPI, or WSGI) with Passenger and .htaccess routing
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_name": "<app_name>",
"domain": "<domain>",
"app_root": "<app_root>"
},
"name": "setup_python_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain or subdomain to host this Python app on (e.g. 'python.example.com') | |
| app_name | Yes | Application identifier (e.g. 'flask-api', 'django-site') | |
| app_root | Yes | Application root directory (e.g. 'python/my-app' or 'public_html/py') | |
| env_mode | No | Deployment mode | production |
| framework | No | Python web framework template to initialize | flask |
| python_version | No | Python version (e.g. '3.9', '3.10', '3.11', '3.12') | 3.11 |