INNER CODE UNIT · Python

_get_adapter

KLR-Pattern/fastapi-voyager · src/fastapi_voyager/server.py:17

def _get_adapter(
    target_app: Any,
    module_color: dict[str, str] | None = None,
    gzip_minimum_size: int | None = 500,
    module_prefix: str | None = None,
    swagger_url: str | None = None,
    online_repo_url: str | None = None,
    initial_page_policy: INITIAL_PAGE_POLICY = "first",
    ga_id: str | None = None,
    er_diagram: ErDiagram | None = None,
    enable_pydantic_resolve_meta: bool = False,
    server_mode: bool = False,
) -> Any:
    """
    Get the appropriate adapter for the given target app.

    Automatically detects the framework type and returns the matching adapter.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…