Reusable domain adapters for IatroCache packs
Project description
iatro-iac-adapters
Concrete reusable data schemas for iatro-base-iac.
pip install iatro-iac-adapters
Installing this package also installs the matching IatroCache core. Schemas are imported from their owning modules:
from iatro.iac.adapters.text import ClinicalTextReader
from iatro.iac.adapters.tiles import TilePackageReader
from iatro.iac.adapters.dicom import (
DicomPatientReader,
build_dicom_patient_package,
build_dicom_patient_package_from_files,
)
The DICOM builder accepts one directory containing a single patient's
.dcm files and writes independently addressable lossless JPEG XL instance
records:
build_dicom_patient_package("dicom-directory", "patient.iac")
# Paths, bytes, and one-shot binary streams are also accepted lazily:
build_dicom_patient_package_from_files(dicom_inputs, "patient.iac")
reader = DicomPatientReader("patient.iac")
pixels = reader.read_pixel_array(0)
reader.write_dicom(0, "restored.dcm")
The physical layout and reconstruction contract are documented in
docs/dicom-patient-schema.md.
The package contains reusable tile, fixed-feature, clinical-text, paired
clinical-text, and patient-level DICOM schemas. It defines no adapter base
class, protocol, or registry:
new schemas directly compose VariableRecordPack or FixedRecordPack with a
codec. Project-specific schemas remain in their owning projects.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iatro_iac_adapters-0.1.0.tar.gz.
File metadata
- Download URL: iatro_iac_adapters-0.1.0.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f90ef6e982685c5cd4277345e363071848e5ca72232140429620d83cce2a553b
|
|
| MD5 |
f87f37686c97899f98ed297539caf8e2
|
|
| BLAKE2b-256 |
da1c57959ae03279e153e7e956379605a03494b59b88725089bb09fd8e87b1c4
|
File details
Details for the file iatro_iac_adapters-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iatro_iac_adapters-0.1.0-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43770cd5cb12c6844b8c9da8663913f2f0aa3c7f69237454d2627b2534b34a65
|
|
| MD5 |
f10f7f4a6b08eb3b853eca11bf20a552
|
|
| BLAKE2b-256 |
6f6011c6d8f6d0d3c2d6d5b426a8e86796b485494a865bbdcdeaf13f1d33ee53
|