Skip to main content

TissueLab Python SDK - OS-aware imaging wrappers

Project description

TissueLab SDK

OS-aware imaging wrappers for medical image processing

Python License PyPI


🚀 Quick Start

Installation

pip install tissuelab_sdk

Basic Usage

from tissuelab_sdk.wrapper import TiffSlideWrapper, DicomImageWrapper

# Load a TIFF slide
with TiffSlideWrapper("path/to/slide.tiff") as slide:
    print(f"Dimensions: {slide.dimensions}")
    region = slide.read_region(location=(0, 0), level=0, size=(512, 512))

# Load a DICOM image
with DicomImageWrapper("path/to/image.dcm") as dicom:
    region = dicom.read_region(location=(0, 0), level=0, size=(256, 256))

📦 Supported Formats

  • TIFF/TIFFSlide: Standard TIFF and tiled TIFF files
  • DICOM: Medical imaging standard
  • NIfTI: Neuroimaging format
  • CZI: Zeiss microscopy format (Windows)
  • ISyntax: Philips pathology format (Windows)
  • Simple Images: JPEG, PNG, BMP, etc.

🔧 API Reference

Core Wrappers

from tissuelab_sdk.wrapper import (
    TiffSlideWrapper,    # TIFF files
    DicomImageWrapper,   # DICOM files
    NiftiImageWrapper,   # NIfTI files
    SimpleImageWrapper,  # JPEG, PNG, etc.
    CziImageWrapper,     # CZI files (Windows)
    ISyntaxImageWrapper  # ISyntax files (Windows)
)

# All wrappers share the same interface
with TiffSlideWrapper("image.tiff") as wrapper:
    # Properties
    wrapper.dimensions          # (width, height)
    wrapper.level_count         # Number of pyramid levels
    wrapper.properties          # Dictionary of metadata
    
    # Methods
    region = wrapper.read_region(location=(x, y), level=0, size=(w, h))
    thumbnail = wrapper.get_thumbnail((256, 256))

🏥 Integration with TissueLab

This SDK is part of the TissueLab ecosystem:

# TissueLab automatically uses this SDK for image loading
from tissuelab_sdk.wrapper import TiffSlideWrapper

def analyze_slide(slide_path):
    with TiffSlideWrapper(slide_path) as slide:
        # Process the slide
        return process_image(slide)

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

📞 Contact & Support

📚 Citation

If you use TissueLab SDK in your research, please cite our paper:

@article{li2025co,
  title={A co-evolving agentic AI system for medical imaging analysis},
  author={Li, Songhao and Xu, Jonathan and Bao, Tiancheng and Liu, Yuxuan and Liu, Yuchen and Liu, Yihang and Wang, Lilin and Lei, Wenhui and Wang, Sheng and Xu, Yinuo and Cui, Yan and Yao, Jialu and Koga, Shunsuke and Huang, Zhi},
  journal={arXiv preprint arXiv:2509.20279},
  year={2025}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tissuelab_sdk-0.1.13.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tissuelab_sdk-0.1.13-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file tissuelab_sdk-0.1.13.tar.gz.

File metadata

  • Download URL: tissuelab_sdk-0.1.13.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for tissuelab_sdk-0.1.13.tar.gz
Algorithm Hash digest
SHA256 0a19abca8565f68b137224d651bf3e9703744bc14a2324efade55edfb1af941a
MD5 7a4bf1ac1b466fcdc74c1147dc39dc7e
BLAKE2b-256 08a43628ab4b352e95ec285b5b1764f5a2050084725fb7f9299aa0bf099a62f7

See more details on using hashes here.

File details

Details for the file tissuelab_sdk-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: tissuelab_sdk-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for tissuelab_sdk-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ab6ca9ef13cb6426c01a297011677ab5aee53a1aae207ee3dbae79e6dcef44b1
MD5 f88165e0996025b798f7e986bcde3b5b
BLAKE2b-256 1e8df893f373c41c8ebc4cd6b1e7b5708af89b944b74c68351b2f7ec0ae20462

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page