$ pip install hal9
$ hal9 deploy app --type uvicorn --main app.py
Login required to generate deployment token.
from fastapi import FastAPI
import random
app = FastAPI()
@app.get("/")
async def roll():
return random.randint(1, 6)