Metadata-Version: 2.4
Name: iatro-iac-adapters
Version: 0.1.2
Requires-Dist: iatro-base-iac[dicom]==0.1.2
Requires-Dist: imagecodecs
Requires-Dist: numpy
Requires-Dist: pillow
Requires-Dist: pydicom>=3,<4
Requires-Dist: pyarrow
Requires-Dist: tqdm
Requires-Dist: pytest ; extra == 'dev'
Requires-Dist: tiffslide>=2.5.1,<3 ; python_full_version < '3.11' and extra == 'wsi'
Requires-Dist: tiffslide>=3,<4 ; python_full_version >= '3.11' and extra == 'wsi'
Provides-Extra: dev
Provides-Extra: wsi
Summary: Reusable domain adapters for IatroCache packs
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# iatro-iac-adapters

Concrete reusable medical-data schemas for `iatro-base-iac`.

```bash
pip install iatro-iac-adapters
```

Installing this package also installs the compatible IatroCache core. Import
each schema from its owning module:

```python
from iatro.iac.adapters.dicom import DicomPatientReader
from iatro.iac.adapters.features import FeatureCacheReader
from iatro.iac.adapters.text import ClinicalTextReader
from iatro.iac.adapters.text_pair import ClinicalTextPairReader
from iatro.iac.adapters.tiles import TilePackageReader
from iatro.iac.adapters.wsi import WsiImageReader
```

The package provides:

- independently encoded JPEG XL pathology tiles;
- complete JXL WSI rasters with MPP-addressed region reads and an adapter-owned
  Rust fused renderer;
- fixed-width teacher-feature matrices aligned to tile metadata;
- independently compressed patient-level clinical-text blocks;
- aligned source/compressed clinical-text pairs;
- patient-level DICOM packages with lossless pixels and DICOM reconstruction.

The adapter package defines no adapter base class, protocol, or registry. Each
schema directly composes the public pack, codec, and container APIs.

See the repository [adapter guide](../../docs/adapters.md), including the
[pathology](../../docs/modalities/pathology.md),
[WSI image](../../docs/modalities/wsi-image.md),
[clinical-text](../../docs/modalities/clinical-text.md), and
[DICOM](../../docs/modalities/dicom.md) pages.

Install the optional TIFF-family WSI import backend with:

```bash
pip install "iatro-iac-adapters[wsi]"
```

