hubvault.server.launch
Quick-start launcher for hubvault.server.
This module exposes the import-friendly launch(...) helper and the
python -m hubvault.server argument parser. All startup modes still flow
through the shared hubvault.server.config.ServerConfig.
The module contains:
launch()- Start a local uvicorn serverbuild_argument_parser()- Build the module CLI parsermain()- Module entry point
launch
- hubvault.server.launch.launch(config: ServerConfig | None = None, **kwargs)[source]
Create and run the embedded ASGI server.
- Parameters:
config (Optional[ServerConfig]) – Optional pre-built server configuration
kwargs (dict) – Keyword arguments used to build
ServerConfigwhenconfigis omitted
- Returns:
Return value from
uvicorn.run()- Return type:
Any
- Raises:
hubvault.optional.MissingOptionalDependencyError – Raised when the API extra is not installed.
ValueError – Raised when the server configuration is invalid.