Skip to main content

aimio-py

Coverage (CI) Wheel Build PyPI

Python bindings for the Numerics88 AimIO C++ library.

aimio-py provides a small Python API to read and write AIM files as NumPy arrays, read ISQ files, inspect metadata, and work with processing logs.

Features

  • Read AIM files into NumPy arrays
  • Write AIM files from NumPy arrays
  • Read ISQ files into NumPy arrays
  • Access AIM and ISQ header metadata (aim_info, isq_info)
  • Convert processing logs between text and dictionary formats
  • Optional density/HU conversion helpers

Installation

From PyPI (recommended):

pip install aimio-py

From source:

git clone https://github.com/wallematthias/aimio-py.git
cd aimio-py
git submodule update --init --recursive
pip install -e .

Quickstart

from py_aimio import read_aim, read_isq, write_aim

array, meta = read_aim("scan.AIM")
write_aim("copy.AIM", array, meta)

isq_array, isq_meta = read_isq("scan.ISQ")

Reading ISQ files

from py_aimio import isq_info, read_isq

info = isq_info("scan.ISQ")
print("Dimensions:", info["dimensions"])
print("Voxel spacing:", info["spacing"])

array, meta = read_isq("scan.ISQ")
print(array.shape, array.dtype)  # (z, y, x), int16

hu_array, hu_meta = read_isq("scan.ISQ", unit="hu")
bmd_array, bmd_meta = read_isq("scan.ISQ", unit="density")

API

  • aim_info(path)
  • isq_info(path)
  • read_aim(path, density=False, hu=False) -> (array, meta)
  • read_isq(path, unit="native") -> (array, meta)
  • write_aim(path, array, meta=None, unit=None)
  • get_aim_density_equation(processing_log)
  • get_aim_hu_equation(processing_log)
  • log_to_dict(log)
  • dict_to_log(dct)

For ISQ files, unit="native" returns stored scanner values. unit="hu" and unit="density"/unit="bmd" use calibration metadata from the ISQ extended header when present.

Development

Run tests:

pytest -q

Run tests with coverage:

pytest -q --cov=py_aimio --cov-report=term-missing --cov-report=xml:coverage.xml

Build local artifacts:

python -m build --wheel --sdist

Build documentation from docstrings:

pip install sphinx
make -C docs html

Generated HTML will be in docs/build/html/index.html.

Important build note

This project depends on the external/AimIO and external/n88util git submodules. If they are missing, extension builds will fail.

Attribution

  • py_aimio/calibration.py is adapted from Bonelab/Bonelab.
  • py_aimio/header_log.py is by Matthias Walle.

License

MIT

Metadata

Release files for aimio-py 0.1.4

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

Source distribution (sdist)

Source distribution for aimio-py 0.1.4
File Size Uploaded
aimio_py-0.1.4.tar.gz 56.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for aimio-py 0.1.4
File
aimio_py-0.1.4-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
aimio_py-0.1.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details
aimio_py-0.1.4-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
aimio_py-0.1.4-cp313-cp313-macosx_10_13_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.13+ x86-64 Details
aimio_py-0.1.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
aimio_py-0.1.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details
aimio_py-0.1.4-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
aimio_py-0.1.4-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details
aimio_py-0.1.4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
aimio_py-0.1.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details
aimio_py-0.1.4-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
aimio_py-0.1.4-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details
aimio_py-0.1.4-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
aimio_py-0.1.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details
aimio_py-0.1.4-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
aimio_py-0.1.4-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details

Total release size: 9.0 MB

Release files / aimio_py-0.1.4.tar.gz

Download URL aimio_py-0.1.4.tar.gz
Size 56.6 kB
Tags Source
SHA-256 checksum
How to use checksums
adabf4b69b2129a5e997286da647c2f0c4fe4a0eca902ed04b193b7c2d7538a4
BLAKE2b-256 checksum
How to use checksums
5eb9322c9a0cb003161b44948437a00bea38b9bbd9585adc07e650469b632aed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp313-cp313-win_amd64.whl

Download URL aimio_py-0.1.4-cp313-cp313-win_amd64.whl
Size 313.7 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
2e02c0859bbea8a9838f431a0d80cf7d747a83f01764169c0ec9d22005fbd701
BLAKE2b-256 checksum
How to use checksums
c43a4c366297d3eec02662674ca3b82e24ba7f344bce38bdf8b83a2da6402f6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL aimio_py-0.1.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 1.7 MB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1989028b739e5dfebcfc6c9d656022515d8a9ee0372eec12add2d2e6c038231a
BLAKE2b-256 checksum
How to use checksums
6d9534a509033841497f8a2d16108de36c752fbc811c8f63b4c986bbba8242ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp313-cp313-macosx_11_0_arm64.whl

Download URL aimio_py-0.1.4-cp313-cp313-macosx_11_0_arm64.whl
Size 123.9 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2a29991af40f5ad4208c24e6245b5235e0f87f8f3d4202994139601d99d5a572
BLAKE2b-256 checksum
How to use checksums
e616f586a6e9c75f8b8c640b3aab1f85283a803301459638e253c3a75ccda888
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp313-cp313-macosx_10_13_x86_64.whl

Download URL aimio_py-0.1.4-cp313-cp313-macosx_10_13_x86_64.whl
Size 130.1 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
d152f96edc80c07f6ea9bf36d5600a2b52a90aebdef82f07080ea5a496cb3010
BLAKE2b-256 checksum
How to use checksums
d035346115001b4972e2f336788108df90d3623a61f9a693bc982e5455652739
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp312-cp312-win_amd64.whl

Download URL aimio_py-0.1.4-cp312-cp312-win_amd64.whl
Size 313.6 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
37cbe7a8ee3c4b855cdebf8d4400a34e50def3c0455e3a8864cac179ee336296
BLAKE2b-256 checksum
How to use checksums
33aa3670110a9e622152310c1392729cd8333605e798a8f1057778de3874a878
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL aimio_py-0.1.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 1.7 MB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
41c5e761e2786732f6a5286c2cbdf983a0f6c1889047454f7e84a41d838b39e9
BLAKE2b-256 checksum
How to use checksums
67aba38935db0feb85ff4d29c03732ed2a5598b88e835567edea3ad62cb24de5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp312-cp312-macosx_11_0_arm64.whl

Download URL aimio_py-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Size 123.8 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
69fd28277bdcefb9854c08190aa77ef559252d3e3c3088a17d3b7555b0cea1fc
BLAKE2b-256 checksum
How to use checksums
6b2ba617612f6810cdb902bb0f3459477b6a7a4cddc6775ce37fb84469ac3d21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp312-cp312-macosx_10_13_x86_64.whl

Download URL aimio_py-0.1.4-cp312-cp312-macosx_10_13_x86_64.whl
Size 130.1 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
8e25241868ba5b25de3ac6f362e04349376faa5bc2a9879019915b3cb82ba508
BLAKE2b-256 checksum
How to use checksums
f69308e9c832da2c2bd7ff99db4ac19cf7d47e5a5416e8a13f3c4c6f7cebcea0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp311-cp311-win_amd64.whl

Download URL aimio_py-0.1.4-cp311-cp311-win_amd64.whl
Size 311.0 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
0c12aedbd9b9286139f8bf21d7dc7586adc27b7e5035f5d1f8273a03ad23bdec
BLAKE2b-256 checksum
How to use checksums
9325e6ca1b4cfb0b54c2e8d4730ae7f7e2ead0132cfcc83906e33da0e57abcc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL aimio_py-0.1.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 1.6 MB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
514defe70810ef513390ccf0695f6111f3820d00d7117c652ded5c5b4784ecc5
BLAKE2b-256 checksum
How to use checksums
c102ab50168213391815b29797e420a6f049be11e22580a1b8308f49b76cd9a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp311-cp311-macosx_11_0_arm64.whl

Download URL aimio_py-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
Size 122.2 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
29e7dad4e002635ede07f5dcb9015210a8c8f1fdcc47b8be7b3523eb4c342ebd
BLAKE2b-256 checksum
How to use checksums
331cdd17eb278401bda7d13381e578141e8fa8cf711bc249373c446b53bc2de7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp311-cp311-macosx_10_9_x86_64.whl

Download URL aimio_py-0.1.4-cp311-cp311-macosx_10_9_x86_64.whl
Size 127.9 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
81f9610336a3879bc06aa6c5ea0ef1d24acc2f53f011f1d6579ff20e835b1f3b
BLAKE2b-256 checksum
How to use checksums
d91385d41a851af7857f801e624ed3d6a331ba17b0a750cca11a64daea43fb90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp310-cp310-win_amd64.whl

Download URL aimio_py-0.1.4-cp310-cp310-win_amd64.whl
Size 310.3 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
c7a09875d161ee954c9c42ac373f82f8b3b7fd3d8e52c9de78fff7f97c010cf9
BLAKE2b-256 checksum
How to use checksums
e7d8436780a7e1bd49903c7d5828c85b1c8a0a8598706b39c26dec42eadc6c6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL aimio_py-0.1.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 1.6 MB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
151c22289f9514983f43de8284a733f0502d7a750ef07476426dfc5b830f2aca
BLAKE2b-256 checksum
How to use checksums
9abf1cce2ad6364e771200856476693e8d932a1ebb125dbbc78abc56bd1d5cd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp310-cp310-macosx_11_0_arm64.whl

Download URL aimio_py-0.1.4-cp310-cp310-macosx_11_0_arm64.whl
Size 120.8 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0fa27fe41a3a3cd33b6725668acd2525fcbe7e4759b602863c2803830eaee557
BLAKE2b-256 checksum
How to use checksums
3b4755b61681c21df4606768f60ec2cfe2b21fce98ab94fff683794015e396d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / aimio_py-0.1.4-cp310-cp310-macosx_10_9_x86_64.whl

Download URL aimio_py-0.1.4-cp310-cp310-macosx_10_9_x86_64.whl
Size 126.4 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
718ec4e0f2cd46b23c65977a6bffe96a4ec2e5653e4e17ba56f82f17f05570dc
BLAKE2b-256 checksum
How to use checksums
af68f5ada1314cab66eb3adf38e05833668fe848bbe84c5268277075eb239564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.9

21 release files

0.1.8

17 release files

0.1.7

17 release files

This release

0.1.4 This release

17 release files

0.1.1

17 release files

0.1.0

18 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