labthings_fastapi.server.cli

Module Contents

Functions

get_default_parser

Return the default CLI parser for LabThings

parse_args

Process command line arguments for the server

config_from_args

Process arguments and return a config dictionary

serve_from_cli

Start the server from the command line

API

labthings_fastapi.server.cli.get_default_parser()

Return the default CLI parser for LabThings

This can be used instead of parse_args if more arguments are needed

labthings_fastapi.server.cli.parse_args(argv: Optional[list[str]] = None) argparse.Namespace

Process command line arguments for the server

labthings_fastapi.server.cli.config_from_args(args: argparse.Namespace) dict

Process arguments and return a config dictionary

labthings_fastapi.server.cli.serve_from_cli(argv: Optional[list[str]] = None, dry_run=False)

Start the server from the command line