Skip to main content

tomoz (Python)

Python bindings of Tomoz, the learned lossless codec for medical image volumes.

import numpy as np
import tomoz

volume = np.load("ct.npy")            # (slices, rows, columns), int16/uint16/uint8/int8
data = tomoz.encode(volume)
assert np.array_equal(tomoz.decode(data), volume)
print(tomoz.info(data)["bits_per_sample"])

DICOM archives restore every file byte for byte:

archive, report = tomoz.pack_dicom([("1.dcm", open("1.dcm", "rb").read())])
files = tomoz.unpack_dicom(archive)   # [(name, bytes)]

Metadata

Release files for tomoz 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 tomoz 0.2.0
File Size Uploaded
tomoz-0.2.0.tar.gz 142.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for tomoz 0.2.0
File
tomoz-0.2.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
tomoz-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
tomoz-0.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
tomoz-0.2.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 2.9 MB

Release files / tomoz-0.2.0.tar.gz

Download URL tomoz-0.2.0.tar.gz
Size 142.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3aa27057e0e87938a1e9b2ac7c24fc8de5f954503a03a81348429cf7a41b1e2f
BLAKE2b-256 checksum
How to use checksums
dd598c413554b91cf9f9fd1a4028145e42a55a682f404f2216efe8f4224d3299
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 Oct 2, 2026.

Transparency log

Release files / tomoz-0.2.0-cp310-abi3-win_amd64.whl

Download URL tomoz-0.2.0-cp310-abi3-win_amd64.whl
Size 547.0 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
83f37d2e904b6c48fabc930babf9af141c6fff6c0c58922f19fb7adf3f577314
BLAKE2b-256 checksum
How to use checksums
33dcf32a350eb462ff149117f118a00a73533571a426684ad399e0a2fcf66a59
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 Oct 2, 2026.

Transparency log

Release files / tomoz-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tomoz-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 806.5 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
1a2087285dcebba45dae36253fc253779059c938b146465a45314168f67f2b69
BLAKE2b-256 checksum
How to use checksums
0504d9f91a8d5d52523258e81809a2300c32b775bd4d54313e12aa6b447c2973
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 Oct 2, 2026.

Transparency log

Release files / tomoz-0.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tomoz-0.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 792.6 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
35fc8be62fc571e11096bb99bf58fe02d09a25816d5ee9dc7d5eace6f72f46b1
BLAKE2b-256 checksum
How to use checksums
798da21f88543c7902b3cc26d65cc47715cd9bc1c327ccac9e0a3f79bdc48985
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 Oct 2, 2026.

Transparency log

Release files / tomoz-0.2.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL tomoz-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
Size 649.9 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f34d0a126446a0c2178e0fb61066238d7086e8305308c246a66cdf316b643a65
BLAKE2b-256 checksum
How to use checksums
aeb3bd9f503530425994dd15417f7a59e18db19b743273f4c956bcb067c92f3f
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 Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

5 release files

0.1.1

5 release files

0.1.0

5 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