small library, that can create web api from your python function.
Example:
def hello(name: str) -> str:
"""
hello
test
"""
return "Hello " + namewill generate this json description:
{
"module_name.hello": {
"name": "hello",
"description": '\n hello\n test\n ',
"fully_qualified_name": "module_name.hello",
"annotations": [
{"name": "name", "type": "string"},
{"name": "return", "type": "string"},
],
}
}which can be easily dumped into json object
func-to-web/func_to_web/resolvers.py
Line 12 in aef19dd