I was looking for something similar to click / fire that uses type annotations to validate/cast the inputs today. Came across this https://github.com/Lucretiel/autocommand
I think it would be really nice to have a library that takes the type annotated functions and lets you expose them as a CLI, GUI, REST API and a web form. Practically just combining click, flask, rest framework and Gooey. Would be a great tool for data scientists.
Take something like
def recognize(image: Image) -> List[Prediction]
preds = model(image)
return preds
and generate web page that lets you drop an image in and get a list of predictions