Skip to main content

AI OnDemand (AIoD) Utilities

A central package to unify helpful utilities for AI OnDemand that are useful/used across the Nextflow pipeline, Segment-Flow, and the Napari plugin. This primarily covers a centralisation of I/O and the implementation of RLE format.

Installation

Requires Python 3.11 or 3.12.

Using pip:

pip install aiod_utils

Using uv:

uv add aiod_utils  # or uv pip install aiod_utils

For Bio-Formats support, install the optional extra:

pip install "aiod_utils[bioformats]"

What's included

  • aiod_utils.io — Load images via BioIO, with automatic reader selection for common formats (TIFF, OME-TIFF, Zarr, ND2, and more), and save them back out as OME-TIFF or OME-Zarr. Also centralises image/mask naming so the Napari front-end (and potential others) and Segment-Flow backend derive filenames identically.
  • aiod_utils.rle — Encode and decode segmentation masks (binary and instance) as COCO-compatible Run-Length Encoding, with save/load support.
    • Note that there are some optimisations here to help improve encode/decode times for dense segmentation masks, particularly for storing instance masks!
  • aiod_utils.stacks — Utilities for splitting large volumetric images into memory-bounded substacks for use in our Nextflow pipeline (Segment-Flow). Is generally useful for dividing images/arrays into subsets to parallelise/iterate over, with optional memory budget.
  • aiod_utils.preprocess — Modular image preprocessing steps (e.g. CLAHE, downsampling) with a base class for defining custom steps. Easily extendable for use in Segment-Flow or our Napari plugin.

Documentation

For the wider AIoD documentation, please see our docs.

License

MIT — see LICENSE.

Metadata

Release files for aiod-utils 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiod-utils 0.2.0
File Size Uploaded
aiod_utils-0.2.0.tar.gz 124.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aiod-utils 0.2.0
File Interpreter ABI Platform
aiod_utils-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 148.3 kB

Release files / aiod_utils-0.2.0.tar.gz

Download URL aiod_utils-0.2.0.tar.gz
Size 124.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a43909520464c481f2dbbf1faa87668ccc477f9745a9531c8e8f58c5e1eaed67
BLAKE2b-256 checksum
How to use checksums
2b098f828fae0090d1e453af8249c529bd6c73b9c788c0c98472b823cc2f15b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release files / aiod_utils-0.2.0-py3-none-any.whl

Download URL aiod_utils-0.2.0-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab661b831396fba03251bf00147369126c85c5378a06e85d35a816faf35ee4da
BLAKE2b-256 checksum
How to use checksums
3953fbaaf8149f9bc71855a65c0fc2bd5a3a06749b099e108afbb4a72acb344e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page