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

API

  • aim_info(path)
  • isq_info(path)
  • read_aim(path, density=False, hu=False) -> (array, meta)
  • read_isq(path) -> (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)

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.3

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.3
File Size Uploaded
aimio_py-0.1.3.tar.gz 52.5 kB Details

Built distributions (wheels)

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

Total release size: 8.9 MB

Release files / aimio_py-0.1.3.tar.gz

Download URL aimio_py-0.1.3.tar.gz
Size 52.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bed8c09679d259c886798fa76ac1ec1e49fe6c5f658ab4ac74212779429e556a
BLAKE2b-256 checksum
How to use checksums
74d19a60492e65628d3d7ff992caa9e29c5dd81ffcd032b1f42f1525a0c4b207
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.3-cp313-cp313-win_amd64.whl

Download URL aimio_py-0.1.3-cp313-cp313-win_amd64.whl
Size 312.5 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
a89538439ec19d48944b8ad97f6c4097bcf54a39fa922fd65f5efa0daf1a84b2
BLAKE2b-256 checksum
How to use checksums
8a1de45d9f5cdc15dd9950400c436098598477f7102dca27e5c9323a53f09893
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.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL aimio_py-0.1.3-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
04e4e80d783f763b038e51d3e2ad9c60050cc43a151193a6977b3c2785639168
BLAKE2b-256 checksum
How to use checksums
e6bc9d1232c1f239d4a82678d7c8fd9d9079fde484f0fa77d97df53ac4ba51f0
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.3-cp313-cp313-macosx_11_0_arm64.whl

Download URL aimio_py-0.1.3-cp313-cp313-macosx_11_0_arm64.whl
Size 122.8 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f011066755492033d79e0a381d71ecf1d737d5e6c45173b81d6d3c8fab20ec82
BLAKE2b-256 checksum
How to use checksums
f54cc542ce5510f98622b532fb8b04d4958c98238327f7ae03fcc838cad0d68b
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.3-cp313-cp313-macosx_10_13_x86_64.whl

Download URL aimio_py-0.1.3-cp313-cp313-macosx_10_13_x86_64.whl
Size 129.0 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
cabe79a6f82034c36ace351d0941f3f01aa11189458b2010c38daa5448a86a07
BLAKE2b-256 checksum
How to use checksums
969ea503e50cc32970ecc5a10e20d7cd93d14822f6c482e42118cec210bb9609
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.3-cp312-cp312-win_amd64.whl

Download URL aimio_py-0.1.3-cp312-cp312-win_amd64.whl
Size 312.5 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
8b4c7334b934e5fbe91e794aeed3fe6ca16275d774382fb5e6b0a3c4532f32f7
BLAKE2b-256 checksum
How to use checksums
1bc8aa8fe4ededfd35131ad9abaa3cf04b809388e19b6f3ef062e1102cf2b6e0
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.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL aimio_py-0.1.3-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
f172b5919e3495e534d3acb7a767b40df26cb6b224d06eccf95df0b391c92bcc
BLAKE2b-256 checksum
How to use checksums
92525bdf8ea5c4877970a984699f05967409f831c342fd37fc4721eb44b41b4b
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.3-cp312-cp312-macosx_11_0_arm64.whl

Download URL aimio_py-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Size 122.7 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f87f03aff2c1fdc60451c01791e9ae9bcb5b4c99f1f0e8a1f4255ea4ae4d9c69
BLAKE2b-256 checksum
How to use checksums
4fb2429ef476e3ac1e0a21a5d885af3bd2328739454fb4f478df6192aeb84d6a
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.3-cp312-cp312-macosx_10_13_x86_64.whl

Download URL aimio_py-0.1.3-cp312-cp312-macosx_10_13_x86_64.whl
Size 128.9 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
2e9409b006ff476d476c1cb107e37b87a98257d2f6e6bbe37b4e6b6ced54b5b8
BLAKE2b-256 checksum
How to use checksums
2691b0c2d1cecec9efe0dd63493d628af004690ef3d4e9eb30081b7ad64ebad6
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.3-cp311-cp311-win_amd64.whl

Download URL aimio_py-0.1.3-cp311-cp311-win_amd64.whl
Size 309.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
3014df68da479630a8630602e751890878357ef407d8d4cc6ae876661d6849d3
BLAKE2b-256 checksum
How to use checksums
b6da7e5c1e5fefe5e08063972b43106682980694c6faf72e9f9eabf83a639e55
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.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL aimio_py-0.1.3-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
93a550cf2c2952257430c5dc414e4fa5f7fca97f44555a6c5f99be85bba657ad
BLAKE2b-256 checksum
How to use checksums
1d4695e7803fdf886b2bd38005117d38f8dbcf476652155ffaf5eaf33188eb8f
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.3-cp311-cp311-macosx_11_0_arm64.whl

Download URL aimio_py-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Size 121.0 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2389dfe7af78c0c064dba97306f605dcbab1711286a7b0598cf85e97534f0c52
BLAKE2b-256 checksum
How to use checksums
83dd65a788a8deab91e0787ee9bd52674931c4c0855722ea58b3533df154918f
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.3-cp311-cp311-macosx_10_9_x86_64.whl

Download URL aimio_py-0.1.3-cp311-cp311-macosx_10_9_x86_64.whl
Size 126.7 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
0f14af52a88602191a2285cc21ad5b802696da50ae4b070994a4923c909518f2
BLAKE2b-256 checksum
How to use checksums
ffc2ad5d1708d4ef40e78df2f1c663b0d62b04f7e3eb6e20093c0493d52fd440
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.3-cp310-cp310-win_amd64.whl

Download URL aimio_py-0.1.3-cp310-cp310-win_amd64.whl
Size 309.2 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
dfcf01c038ed6e50a2285f0aaaaa628062c0ff1baad6d83dc6c2f300c6295ca2
BLAKE2b-256 checksum
How to use checksums
5a94feeb19b01c71706d2c833e047ee1ddf50f954c09f8bc206a577e8157da56
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.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL aimio_py-0.1.3-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
2991901c5937307872e9cd567c34e7c0c0b6e2061b48702c560dc905a38f0352
BLAKE2b-256 checksum
How to use checksums
db06613a775ed23c2d32e2a5c0239b8f000bda2a5057a9345a051ce202161826
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.3-cp310-cp310-macosx_11_0_arm64.whl

Download URL aimio_py-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
Size 119.7 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ec127fb921912009cc6a1148da30bcf30c56c8179df91737193735a650557ed5
BLAKE2b-256 checksum
How to use checksums
af99aa635baf772e67c439367f7b627178bea09f83614dfe42aa141eba9f4de7
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.3-cp310-cp310-macosx_10_9_x86_64.whl

Download URL aimio_py-0.1.3-cp310-cp310-macosx_10_9_x86_64.whl
Size 125.3 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
63bb6a8e31c597a86d66ab045c82521fa2cdc95cb5119a0ad2e1bc0a6f56976e
BLAKE2b-256 checksum
How to use checksums
3a9099eadb49e1c090d7639bb5a9eb7e9ee109b62fcc6e6c45b71ba1e0c4f141
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.3 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