Python library for patch sampling from whole-slide images (WSI) with annotation-aware batch iteration. Handles three tightly coupled tasks: reading WSIs via pluggable backends (OpenSlide, ASAP, PyVIPS, TiffSlide, cuCIM), parsing annotations from ASAP, QuPath, Virtum, and HistomicsTK, and generating configurable batches using random, balanced, or area-based sampling strategies. Designed specifically for training deep learning models on pathology WSIs, filling the gap above OpenSlide (raw reading) and below full training frameworks. Apache 2.0, actively developed on GitHub (November 2025). Developed by Diagnostic Image Analysis Group, Radboud University Medical Center, as part of the EXAMODE project. Note: PyPI releases are infrequent — install from GitHub for the latest version.
Assess — permissive licence (Apache-2.0).
Derived deterministically by the MACH scorer from the signals below — not written prose.
Dormant — last commit ~12 mo ago; has tests, CI, releases
★ 119 stars · 31 forks · 6 open issues
Python 99%
Every value records the source it was harvested from.
| Field | Value | Source |
|---|---|---|
| citations | 3 | openalex |
| description | A package for working with whole-slide data including a fast batch iterator that can be used to train deep learning models. | github_api |
| discovered_conda | not_found | discovery |
| discovered_cran | not_found | discovery |
| discovered_doi | 10.5281/zenodo.7558991 | discovery |
| discovered_hf | not_found | discovery |
| discovered_npm | not_found | discovery |
| discovered_pypi | wholeslidedata | discovery |
| has CI | True | github_api |
| has docs | True | github_api |
| has releases | True | github_api |
| has tests | True | github_api |
| HuggingFace downloads (monthly) | not_found | huggingface |
| judgement | Assess | mach_scorer |
| judgement reason | Assess — permissive licence (Apache-2.0). | mach_scorer |
| license | Apache-2.0 | github_api |
| openalex_id | https://openalex.org/W6912669713 | openalex |
| openalex_type | software | openalex |
| openalex_venue | Zenodo (CERN European Organization for Nuclear Research) | openalex |
| publication_year | 2023 | openalex |
| PyPI downloads (monthly) | rate_limited | pypi |
| archived | False | github_api |
| repository created | 2021-09-07T05:23:50Z | github_api |
| GitHub forks | 31 | github_api |
| repo health | Dormant | mach_health |
| repo health reason | last commit ~12 mo ago; has tests, CI, releases | mach_health |
| homepage | https://diagnijmegen.github.io/pathology-whole-slide-data/ | github_api |
| languages | Python:99 | github_api |
| last commit | 2025-11-08T15:22:13Z | github_api |
| open issues | 6 | github_api |
| primary language | Python | github_api |
| repo_size_kb | 98298 | github_api |
| GitHub stars | 119 | github_api |
| topics | computational-pathology,deep-learning,histopathology,iterator,pathology,python,whole-slide-annotation,whole-slide-data,whole-slide-dataset,whole-slide-image,whole-slide-imaging,whole-slide-mask,wsa,wsd,wsi,wsm | github_api |
Recorded deviations — when a harvested value changed between runs.
| When | Field | Was | Now | Source |
|---|---|---|---|---|
| 2026-11-20T21:53:48.583517 | repo_health | — | Dormant | mach_health |
| 2026-11-20T21:53:48.583517 | repo_health_reason | — | last commit ~12 mo ago; has tests, CI, releases | mach_health |
| 2026-11-20T21:53:48.583453 | judgement | — | Assess | mach_scorer |
| 2026-11-20T21:53:48.583453 | judgement_reason | — | Assess — permissive licence (Apache-2.0). | mach_scorer |
| 2026-11-20T21:52:10.487352 | hf_downloads | — | — | huggingface |
| 2026-11-20T21:52:10.428349 | pypi_downloads | — | — | pypi |
| 2026-11-20T21:52:10.078123 | citations | — | 3 | openalex |
| 2026-11-20T21:52:10.078123 | openalex_id | — | https://openalex.org/W6912669713 | openalex |
| 2026-11-20T21:52:10.078123 | openalex_type | — | software | openalex |
| 2026-11-20T21:52:10.078123 | openalex_venue | — | Zenodo (CERN European Organization for Nuclear Research) | openalex |
| 2026-11-20T21:52:10.078123 | publication_year | — | 2023 | openalex |
| 2026-11-20T21:52:10.078072 | discovered_conda | — | — | discovery |
| 2026-11-20T21:52:10.078072 | discovered_cran | — | — | discovery |
| 2026-11-20T21:52:10.078072 | discovered_doi | — | 10.5281/zenodo.7558991 | discovery |
| 2026-11-20T21:52:10.078072 | discovered_hf | — | — | discovery |
| 2026-11-20T21:52:10.078072 | discovered_npm | — | — | discovery |
| 2026-11-20T21:52:10.078072 | discovered_pypi | — | wholeslidedata | discovery |
| 2026-11-20T21:52:08.411767 | has_ci | — | True | github_api |
| 2026-11-20T21:52:08.411767 | has_docs | — | True | github_api |
| 2026-11-20T21:52:08.411767 | has_releases | — | True | github_api |
| 2026-11-20T21:52:08.411767 | has_tests | — | True | github_api |
| 2026-11-20T21:52:08.411767 | repo_languages | — | Python:99 | github_api |
| 2026-11-20T21:52:08.411666 | description | — | A package for working with whole-slide data including a fast batch iterator that can be used to train deep learning models. | github_api |
| 2026-11-20T21:52:08.411666 | license | — | Apache-2.0 | github_api |
| 2026-11-20T21:52:08.411666 | repo_archived | — | False | github_api |
| 2026-11-20T21:52:08.411666 | repo_created | — | 2021-09-07T05:23:50Z | github_api |
| 2026-11-20T21:52:08.411666 | repo_forks | — | 31 | github_api |
| 2026-11-20T21:52:08.411666 | repo_homepage | — | https://diagnijmegen.github.io/pathology-whole-slide-data/ | github_api |
| 2026-11-20T21:52:08.411666 | repo_last_commit | — | 2025-11-08T15:22:13Z | github_api |
| 2026-11-20T21:52:08.411666 | repo_open_issues | — | 6 | github_api |
| 2026-11-20T21:52:08.411666 | repo_primary_language | — | Python | github_api |
| 2026-11-20T21:52:08.411666 | repo_size_kb | — | 98298 | github_api |
| 2026-11-20T21:52:08.411666 | repo_stars | — | 119 | github_api |
| 2026-11-20T21:52:08.411666 | repo_topics | — | computational-pathology,deep-learning,histopathology,iterator,pathology,python,whole-slide-annotation,whole-slide-data,whole-slide-dataset,whole-slide-image,whole-slide-imaging,whole-slide-mask,wsa,wsd,wsi,wsm | github_api |