Skip to main content
Factory for WSI reader instantiation with automatic backend selection. Provides the WSI convenience class that selects the best available backend (CuCIM, OpenSlide, TiffSlide) based on the file extension and installed libraries.

get_extension

Extract and normalize file extension from a path.
str
required
File path or filename string.
str
Lowercase file extension including the leading dot.

WSI

Factory class for creating WSI readers with automatic backend selection. Usage:

Backend

Supported backend identifiers and the AUTO selection flag.

list

Return list of valid backend string values (excluding AUTO).

supported_extensions

Get list of all supported file extensions.
List[str]
List of extension strings (e.g. [".svs", ".tiff", ...]).

available_backends

Get availability status of all physical backends.
Dict[str, bool]
Mapping of backend name to availability boolean.