hubvault.server.asgi

ASGI import target for hubvault.server.

Deployment tools such as uvicorn and gunicorn can import hubvault.server.asgi:create_app directly and still reach the same runtime factory used by the quick-start helpers.

create_app

hubvault.server.asgi.create_app(config: ServerConfig | None = None, **kwargs)[source]

Create an ASGI app from environment variables or explicit config.

Parameters:
  • config (Optional[ServerConfig]) – Optional pre-built server configuration

  • kwargs (dict) – Keyword arguments used to build ServerConfig when config is omitted

Returns:

Configured FastAPI application

Return type:

fastapi.FastAPI