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

Extracts and normalizes the file extension from a path.
File path or filename string.
Returns: 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

Returns the list of valid backend string values (excluding AUTO).

supported_extensions

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

available_backends

Returns the availability status of all physical backends. Returns: Mapping of backend name to availability boolean.