A recipe for FastAPI with uvicorn on the Python handler. Tested on the panel with FastAPI 0.143, uvicorn 0.54 and Python 3.14: the application sees https, the domain and the visitor's address, the /docs documentation opens; the application uses about 70 MB of memory.
--proxy-headers with --forwarded-allow-ips make uvicorn trust the headers of the panel's proxy: without them request.url starts with http://, and the client address is the proxy's address.
The build and start commands in the "Handler" block.
Connect the repository in the Git deploy block with the src directory and click "Deploy".
3. What else
Several processes. For a higher load add --workers 2 (each worker is a separate process with its own memory).
Database — the asyncpg, psycopg, aiomysql drivers install from requirements.txt; the database address goes in the "Environment variables" block.
Background tasks — as a separate background process in the "Processes and cron" block.
4. If something goes wrong
502. uvicorn listens on 127.0.0.1 (the default) — you need --host 0.0.0.0 --port $PORT.
Links and redirects with http://.--proxy-headers --forwarded-allow-ips '*' is missing.