Skip to content

MoonChel/func-to-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

func to web

small library, that can create web api from your python function.

Example:

def hello(name: str) -> str:
    """
    hello
    test
    """
    return "Hello " + name

will 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

Supported types

class PYTHON_TYPE(enum.Enum):

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages