dlup.cli package#

Submodules#

dlup.cli.mask module#

CLI utilities to handle masks

dlup.cli.mask.mask_to_polygon(args: argparse.Namespace) None[source]#

Perform the mask conversion to polygon.

dlup.cli.mask.register_parser(parser: argparse._SubParsersAction) None[source]#

Register mask commands to a root parser.

dlup.cli.wsi module#

dlup.cli.wsi.info(args: argparse.Namespace) None[source]#

Return available slide properties.

dlup.cli.wsi.register_parser(parser: argparse._SubParsersAction) None[source]#

Register wsi commands to a root parser.

Module contents#

DLUP Command-line interface. This is the file which builds the main parser.

dlup.cli.dir_path(path: str) pathlib.Path[source]#

Check if the path is a valid directory. Parameters ———- path : str Returns ——- pathlib.Path

The path as a pathlib.Path object.

dlup.cli.file_path(path: str, need_exists: bool = True) pathlib.Path[source]#

Check if the path is a valid file. Parameters ———- path : str need_exists : bool

Returns
pathlib.Path

The path as a pathlib.Path object.

dlup.cli.main() None[source]#

Console script for dlup.