Skip to content

app

Functions:

  • create_app

    Return the ASGI application for Labox.

create_app

create_app(
    engine: AsyncEngine, registry: Registry
) -> Litestar

Return the ASGI application for Labox.

Parameters:

  • engine

    (AsyncEngine) –

    An async SQLAlchemy engine to use for database operations.

  • registry

    (Registry) –

    The registry containing storage, serializer, and unpacker configurations.

Returns:

  • Litestar

    A configured Litestar application.