cellmap_flow.cli.server_cli
Dynamic server CLI generator that automatically detects ModelConfig subclasses and creates server commands based on their __init__ parameters.
Attributes
Functions
|
CellMap Flow Server - Dynamic CLI for running inference servers. |
List all available model configurations. |
|
|
Run the CellMapFlow server with the given configuration. |
|
Dynamically create a Click command for a ModelConfig subclass server. |
Discover and register all ModelConfig subclasses as server CLI commands. |
|
|
Run the dashboard UI server. |
|
Entry point for the server CLI. |
Module Contents
- cellmap_flow.cli.server_cli.logger
- cellmap_flow.cli.server_cli.cli(log_level)
CellMap Flow Server - Dynamic CLI for running inference servers.
Automatically generates server commands for all available ModelConfig subclasses.
Examples
cellmap_flow_server dacapo -r my_run -i 100 -d /path/to/data cellmap_flow_server script -s /path/to/script.py -d /path/to/data cellmap_flow_server cellmap-model -f /path/to/model -n mymodel -d /path/to/data
- cellmap_flow.cli.server_cli.list_models()
List all available model configurations.
- cellmap_flow.cli.server_cli.run_server(model_config, data_path, debug=False, port=0, certfile=None, keyfile=None)
Run the CellMapFlow server with the given configuration.
- cellmap_flow.cli.server_cli.create_dynamic_server_command(cli_name: str, config_class: Type[cellmap_flow.models.models_config.ModelConfig])
Dynamically create a Click command for a ModelConfig subclass server.
- cellmap_flow.cli.server_cli.register_all_server_commands()
Discover and register all ModelConfig subclasses as server CLI commands.
- cellmap_flow.cli.server_cli.run_ui_server(neuroglancer_url, inference_host)
Run the dashboard UI server.
- cellmap_flow.cli.server_cli.main()
Entry point for the server CLI.