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.1.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.1.0
File Size Uploaded
tomoz-0.1.0.tar.gz 141.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for tomoz 0.1.0
File
tomoz-0.1.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
tomoz-0.1.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.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
tomoz-0.1.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.1.0.tar.gz

Download URL tomoz-0.1.0.tar.gz
Size 141.9 kB
Tags Source
SHA-256 checksum
How to use checksums
744a08731c24e0365b92dbb5ae0943df3ee45888162554ca8d569c63f66c88e9
BLAKE2b-256 checksum
How to use checksums
1b33e382cda61cd2129a663dd3b0212629628514fa732420f250c73827de6c3d
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.1.0-cp310-abi3-win_amd64.whl

Download URL tomoz-0.1.0-cp310-abi3-win_amd64.whl
Size 546.9 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
1649e6ae679bea9145a48ca9052acc0cc9abc0468a4b84e12894cb1834ab4386
BLAKE2b-256 checksum
How to use checksums
c91ff0f3cd0f96830d836320190bd118f0c627305d2055542089640d2ff4cb96
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.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tomoz-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 805.4 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
0c55649285123a0fca34b524ad2942680a691946e204b7ad3d609b785ff93ad6
BLAKE2b-256 checksum
How to use checksums
e350172b5c88cc07f58d2692f0945248e42e6259a8d35ff6fb375817ff669d53
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.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL tomoz-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 793.7 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
5eaba0e78919184b2c310eee05d0458d2426ae11e5b57c972c7f2282f63d6239
BLAKE2b-256 checksum
How to use checksums
62446cd44380f414bb1a6e0f5763dda4a441c63e7b481edbcf5d7e564269560b
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.1.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL tomoz-0.1.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
37a44d417a16bfc80a7d66c44d116dcfbcd98cf3ef63cded0e28431c46bee4d3
BLAKE2b-256 checksum
How to use checksums
ee8cc78b6edfb9af587bc7e90e868ea1cd0c89c8eb3f35276a8946522c9ab3e8
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

0.2.0

5 release files

0.1.1

5 release files

This release

0.1.0 This release

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