Skip to main content

mrilite

mrilite is a lightweight Python toolkit for handling 3D MRI volumes.
It provides simple and minimal utilities for:

  • loading and saving NIfTI files
  • basic preprocessing (z-score normalization)
  • visualizing MRI slices
  • overlaying segmentation masks

Designed to be small, dependency-light, and easy to reuse across many MRI projects.

Installation

Using pip:

pip install mrilite

Or install locally:

pip install -e .

Quick Start

from mrilite import load_nifti, zscore, show_slice_with_overlay

vol = load_nifti("t1.nii.gz")
seg = load_nifti("seg.nii.gz")

vol = zscore(vol)

show_slice_with_overlay(vol, seg, axis=2, index=80)

Features

  • Minimal and clean API
  • Works with any 3D/4D NIfTI MRI
  • Transparent segmentation overlay
  • Only essential dependencies (numpy, nibabel, matplotlib)

License

MIT License.

Release files for mrilite 0.1.2

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

Source distribution (sdist)

Source distribution for mrilite 0.1.2
File Size Uploaded
mrilite-0.1.2.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mrilite 0.1.2
File Interpreter ABI Platform
mrilite-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size:12.5 kB

Release files / mrilite-0.1.2.tar.gz

Download URL mrilite-0.1.2.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
69aaed5e88df3b319f5bc99ae0950564d2e57c103823d066660c3bda07782ed0
BLAKE2b-256 checksum
How to use checksums
db8c6c274b1c7a8eb9faab5d9a714a9efcae50e390b1c3763a7f6a48c62f1048
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release files / mrilite-0.1.2-py3-none-any.whl

Download URL mrilite-0.1.2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c913b3bb9cc37b3cafb81e21419d5ff80be1707dd51a407f0abced46c4b58964
BLAKE2b-256 checksum
How to use checksums
0031dde6cc88bccd3d87bcd7980fb26dfce0c675839e31ae3179e1752e0f1df8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

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