> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bioptimus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# bioptimus.data.wsi

WSI data wrappers for patch-level access and PyTorch integration.

Provides [`WSIData`](/sdk-reference/data/wsi/wsi_dataset#wsidata) (single-slide wrapper) and [`WSIDataset`](/sdk-reference/data/wsi/wsi_dataset#wsidataset) (multi-slide collection with flat patch indexing).  For PyTorch DataLoader integration, see `PytorchTileDataset`.

**Example**:

```python theme={null}
>>> from bioptimus.data.wsi import WSIData, WSIDataset, PytorchTileDataset
>>> wsi = WSIData("slide.svs", extractor)
>>> patch, meta = wsi.get_patch(0)
```
