Skip to main content

rumi (python)

Python bindings for Rumi, stateless raster storage for AI4EO. Rumi stores images as (B, Y, X) and time series as (T, B, Y, X).

pip install rumi-eo

Use rumi.geozl to compress frames before writing. It uses the GeoZL linked into Rumi; a separate geozl package is not required.

Rumi currently supports Linux and macOS and requires Python 3.11 or newer. The format and APIs may change before 1.0. See the project README for examples and the format specification for the wire format.

Reads return NumPy by default. PyTorch, JAX and TensorFlow results use DLPack; framework="dlpack" returns the one-shot producer itself. Compatibility is checked before opening the source, and Rumi never casts a dtype to make it fit.

GPU reads decode straight into CUDA memory on Linux or Metal memory on macOS and hand it to the framework through DLPack, so PyTorch, JAX and CuPy import it without a copy.

chip = rumi.read(path, header, framework="torch", device="cuda:0",
                 window=(row, column, height, width))

jax_chip = rumi.read(path, header, framework="jax", device="cuda:0",
                     window=(row, column, height, width))

cupy_chip = cupy.from_dlpack(rumi.read(
    path, header, framework="dlpack", device="cuda:0",
    window=(row, column, height, width)))

mps_chip = rumi.read(path, header, framework="torch", device="mps",
                     window=(row, column, height, width))

cpu_decoded = rumi.read(path, header, framework="torch", device="mps",
                         decode_backend="cpu",
                         window=(row, column, height, width))

The header, byte ranges and copy plan stay on the CPU. PFOR and lanes frames of one- and two-byte samples decode on the device when they have one chunk; other frames use CPU staging before GeoZL writes the result to the selected GPU. decode_backend="cpu" forces complete CPU decoding for all selected frames; "auto" is the default. A CUDA import makes the framework's current stream wait for the read on the device, and the memory returns to Rumi in that stream's order, so keep the stream alive while the array lives. MPS reads require PyTorch 2.10 or newer. GPU frame planning follows rumi.set_num_threads or RUMI_NUM_THREADS, set before the first read, and defaults to one thread per process. R and Julia device arrays are not implemented yet.

Metadata

Release files for rumi-eo 0.32.1

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

Built distributions (wheels)

Table of built distributions (wheels) for rumi-eo 0.32.1
File Interpreter ABI Platform Actions
rumi_eo-0.32.1-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for rumi_eo-0.32.1-py3-none-manylinux_2_28_x86_64.whl
rumi_eo-0.32.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for rumi_eo-0.32.1-py3-none-macosx_11_0_arm64.whl

Total release size: 17.9 MB

Release files / rumi_eo-0.32.1-py3-none-manylinux_2_28_x86_64.whl

Download URL rumi_eo-0.32.1-py3-none-manylinux_2_28_x86_64.whl
Size 13.1 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
da04e877a0fb8e2c37a55a0c8ca6c3740640ca70095e1233a227d1c52735f62c
BLAKE2b-256 checksum
How to use checksums
eba1f366f1c41595d158385cd3aaaf8a7f1217efc830719bcce5bc8b037f4f16
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 Nov 29, 2026.

Transparency log

Release files / rumi_eo-0.32.1-py3-none-macosx_11_0_arm64.whl

Download URL rumi_eo-0.32.1-py3-none-macosx_11_0_arm64.whl
Size 4.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6549638e0c52837e04e37b1868628678428499b486e1aedba513a287315b0c56
BLAKE2b-256 checksum
How to use checksums
2ebdc488a43b84dc7fe59bac6f98768a074f0dbe9c06bcb93de87b00d5031a4b
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 Nov 29, 2026.

Transparency log

Security for rumi-eo 0.32.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rumi_eo-0.32.1-py3-none-manylinux_2_28_x86_64.whl

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 Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.32.1 This release

2 release files Full provenance

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