Skip to main content

Python bindings for the Numerics88 AimIO C++ library

Project description

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, inspect metadata, and work with processing logs.

Features

  • Read AIM files into NumPy arrays
  • Write AIM files from NumPy arrays
  • Access AIM header metadata (aim_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, write_aim

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

API

  • aim_info(path)
  • read_aim(path, density=False, hu=False) -> (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.

Release and PyPI Publishing

Wheels and sdist are built by GitHub Actions on:

  • pull_request to main/master
  • pushes to main/master
  • tags matching v*

When a v* tag is pushed, the workflow publishes to PyPI via trusted publishing (pypa/gh-action-pypi-publish).

See docs/PUBLISHING.md for the release checklist and docs/source/ for Sphinx documentation sources.

Attribution

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

License

MIT

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

aimio_py-0.1.2.tar.gz (51.1 kB view details)

Uploaded Source

Built Distributions

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

aimio_py-0.1.2-cp313-cp313-win_amd64.whl (103.2 kB view details)

Uploaded CPython 3.13Windows x86-64

aimio_py-0.1.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

aimio_py-0.1.2-cp313-cp313-macosx_11_0_arm64.whl (116.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

aimio_py-0.1.2-cp313-cp313-macosx_10_13_x86_64.whl (124.0 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

aimio_py-0.1.2-cp312-cp312-win_amd64.whl (103.1 kB view details)

Uploaded CPython 3.12Windows x86-64

aimio_py-0.1.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

aimio_py-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (116.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

aimio_py-0.1.2-cp312-cp312-macosx_10_13_x86_64.whl (123.9 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

aimio_py-0.1.2-cp311-cp311-win_amd64.whl (101.4 kB view details)

Uploaded CPython 3.11Windows x86-64

aimio_py-0.1.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

aimio_py-0.1.2-cp311-cp311-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

aimio_py-0.1.2-cp311-cp311-macosx_10_9_x86_64.whl (121.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

aimio_py-0.1.2-cp310-cp310-win_amd64.whl (100.9 kB view details)

Uploaded CPython 3.10Windows x86-64

aimio_py-0.1.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

aimio_py-0.1.2-cp310-cp310-macosx_11_0_arm64.whl (113.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

aimio_py-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl (120.1 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file aimio_py-0.1.2.tar.gz.

File metadata

  • Download URL: aimio_py-0.1.2.tar.gz
  • Upload date:
  • Size: 51.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aimio_py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7d761513cbd4b1c8af9c8e9306d19734ffa51e17b01216c389f661402ae6993f
MD5 378d6ee658629307faab1293fba598cb
BLAKE2b-256 759ec6fe2010c2c0b8ea10b2dd7d55663690c7cbc4bf4a0d1dc1eb2a953781ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2.tar.gz:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: aimio_py-0.1.2-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 103.2 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aimio_py-0.1.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e143232fdd7f76c3d4775503b845666ff1f284b2a4fbc26792d10e632dba4490
MD5 ebfd100602eedd78027e60a617c8306d
BLAKE2b-256 69123a12190bf6bab16eeff68dc25fda0082902e537030cb551915ee13cb4be0

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp313-cp313-win_amd64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aimio_py-0.1.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a90d0487e95a029c3e788a997d82ebc45f558d4a50adeed25a38b4b77e9db34e
MD5 ee6703fe3e18c4da990eb2a62598a35f
BLAKE2b-256 3e71cdcbf98be52892ba21e5e744861680c1fc825831a773402c66937b32ce2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aimio_py-0.1.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a89d3ca5cc179000fd9d4309df1b56d393a1ce0c9345551521fb97c166db10a
MD5 7edc4280ac56644088b590f941f514bf
BLAKE2b-256 b1a0c8617781bbf7dc5e8892c840c98802906104c309d90938994d61008924a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for aimio_py-0.1.2-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 614052b9a0731b03845afa79622d642067a8e66550e2d7ee3c03cea21a0922d9
MD5 17a21897c497c47fd6de05dff2d39c31
BLAKE2b-256 e67c7a95c40740669b48e6a9bce6b199de510000275e91e2c2c9b81a4d1094ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp313-cp313-macosx_10_13_x86_64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: aimio_py-0.1.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 103.1 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aimio_py-0.1.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eef626b03622c0e0b6757b5169f107b33d2c061b55e5e5b00ca00f6eedb2af6b
MD5 994efe3e11389e83cd46f94580930e46
BLAKE2b-256 e3b8b05add33ad98084ee3158fb3d7bb5bb494b744ca513f1b841d399aade332

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp312-cp312-win_amd64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aimio_py-0.1.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 43724d252e5e0aee8c5bad25cbad84809aecabfa8a96324eb485ec1efc60fe81
MD5 8653e6408023b15fc2d5f728a892455a
BLAKE2b-256 5f9c02b4a9eaad32d1c032c990f04ac79ebcefebf36423dcfba5a9448b8d92cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aimio_py-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c147e34c12263caf75f7dbb70eda6224bf56e351917ff41e0c183dab26c788d4
MD5 b35d9bec8547c00ad858ca47f8889436
BLAKE2b-256 8edd686e0a7ec9e264c22d925ddea36b7e6e259cd9497ba0b054552787583f8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for aimio_py-0.1.2-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 36c07275e00608a0b0ce5139bf9f9b0235a96f2cd0c3cc15b184e00a769c8a27
MD5 b48d6e1c72d623bc5b8f3a275588e2d1
BLAKE2b-256 15c42a1de4aa49a1f74cdb1d5bf2f8c3bbb32d09c219e3458f9ee3f15db88952

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp312-cp312-macosx_10_13_x86_64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: aimio_py-0.1.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 101.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aimio_py-0.1.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e3da30d2258b293c4526fa576581a20eac4b3d08441512c77af60fae9ff3e360
MD5 66478279e89735c6b60222552b682bb1
BLAKE2b-256 92c393d58a725d6ac4d5ea1d442d7d85e39091bee9ecdb18c58df50280d9d94b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp311-cp311-win_amd64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aimio_py-0.1.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1e69355b5cbf8a865c70753e140ec4a63ab3c7d3ace69f37bd0bf7c42d90d364
MD5 e89cf39d1a0b140485fe02b27ab36125
BLAKE2b-256 0155fda38f8589dab4e2eee8bb79ff660912a9d6a433e418560f9ae016036f16

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aimio_py-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a52040e007fbfd833c20ef787b52579ae8badc61fe7511a5970859dd2920a026
MD5 a1b460eb7e8515e8be9f11495ac25819
BLAKE2b-256 a263f9e4db0924df88570120d8cf62cdf3f84322fa15234b458375d3a2afa0c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for aimio_py-0.1.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 018f9cc0460c77a33511cca754ac3bb8851713a16544dd486e13ac318f8914ad
MD5 61b0f4d6c8b3076c02bc34795f8f2ff5
BLAKE2b-256 731e53b4e9620d2e3a8d5454d2f18080351fce1d21ca2d55aa81708305e09fe8

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: aimio_py-0.1.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 100.9 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aimio_py-0.1.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ff81c86c2687644cd9afb6f28fcda42da940aa7c4d4946d10574f4100f75f1e2
MD5 8c89bf2f1ce27df15e8beb21df1a8ce5
BLAKE2b-256 9334d863451715148f7a37510935541334757784dd0bbd2f556ac3dad8212920

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp310-cp310-win_amd64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aimio_py-0.1.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b609752e10ac946082007a1ecea2123bfe23a80d3862ba2eec2da4e9e22803b2
MD5 8389b01feb197247c7b575b310e7157b
BLAKE2b-256 c1a0f70e158185e467abfee33e3148e428c230398939b99eacd7e26fe06ef4e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aimio_py-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53ac6c6c20c28bafcf983b16e75d50cde9ca5f2669410db35980a77569fe6b45
MD5 759161bb3175ca1f9b77dc4c6aeca449
BLAKE2b-256 448e078012c3fb97162b21296308ddbb9171a8ec4a59cfc878f1e56fb4bdd01b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aimio_py-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for aimio_py-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 63cd5abb84a94d4faf0ce286dec46b5016eb8969704f0ff3ade7765ee5ef6b6c
MD5 909e73726207d5b32fa96e42c7ed86f3
BLAKE2b-256 0c5c475949079d457f7b22fa90664749b37fcb1b40b49ee8ee4778c7a5f7d359

See more details on using hashes here.

Provenance

The following attestation bundles were made for aimio_py-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: build-wheels.yml on wallematthias/aimio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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