Source code for reactpy.backend.fastapi

from __future__ import annotations

from fastapi import FastAPI

from reactpy.backend import starlette

# BackendType.Options
Options = starlette.Options

# BackendType.configure
configure = starlette.configure


# BackendType.create_development_app
[docs]def create_development_app() -> FastAPI: """Create a development ``FastAPI`` application instance.""" return FastAPI(debug=True)
# BackendType.serve_development_app serve_development_app = starlette.serve_development_app use_connection = starlette.use_connection use_websocket = starlette.use_websocket