Skip to main content

main

Executes the FastAPI command-line interface if the standard package is installed, otherwise prompts the user to install 'fastapi[standard]' and raises a RuntimeError.

def main() - > None

Executes the FastAPI command-line interface or raises a RuntimeError if the required 'fastapi[standard]' package is not installed.

Returns

TypeDescription
NoneNothing is returned; the function either executes the CLI or raises an exception.