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

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.33.0
File Interpreter ABI Platform Actions
rumi_eo-0.33.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for rumi_eo-0.33.0-py3-none-manylinux_2_28_x86_64.whl
rumi_eo-0.33.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for rumi_eo-0.33.0-py3-none-macosx_11_0_arm64.whl

Total release size: 10.5 MB

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

Download URL rumi_eo-0.33.0-py3-none-manylinux_2_28_x86_64.whl
Size 5.8 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
4fbf192e0b2d446f18beb0d26eb0dabd7405b18e0119d6a6f52aa4f480ab92b8
BLAKE2b-256 checksum
How to use checksums
d78459784e8484698f5ceb567a274442693d122cffeb522a22aa4243fd795bda
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 30, 2026.

Transparency log

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

Download URL rumi_eo-0.33.0-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
58512ed1b55b815984eed31b8c1bc12ab0c83e26cb32f8ed88436b351f32ab34
BLAKE2b-256 checksum
How to use checksums
7efa0048eaa5dc39baa368e495af9aff9c0caab0974360602a3e60302183b326
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 30, 2026.

Transparency log

Security for rumi-eo 0.33.0

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.33.0-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 30, 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.33.0 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