Skip to main content

main

Executes the main command-line interface function. If the fastapi[standard] package is not installed, it prints an error message and raises a RuntimeError.

def main() - > None

Executes the FastAPI command-line interface. This function ensures that the 'fastapi[standard]' package is installed before attempting to run the CLI, raising a RuntimeError if it's not found.

Returns

TypeDescription
NoneThis function does not return any value; it either executes the CLI or raises an error.