Skip to main content

pyroexr

PyPI Downloads

This is a minimal Python wrapper around the Rust exr crate, which provides fast loading of OpenEXR files.

Note that this project only supports the functionality we currently need ourselves. For instance, the package assumes you want to load the entire file into memory and that there is only one layer in the file. I have no current plans to extend it further, but contributions are of course welcome.

Installation

The package can be installed directly from PyPI:

python -m pip install pyroexr

Usage

A file can be opened and its channels printed as follows:

import pyroexr

image = pyroexr.load("Ocean.exr")
print("Channels", image.channels())
Channels ['B', 'G', 'R']

Each channel can be accessed as a NumPy array, for instance to plot it in Matplotlib:

import matplotlib.pyplot as plt
plt.imshow(image.channel("B"))
plt.show()

Ocean output

Development

If you want to develop this package locally, use the maturin tool to build the Rust code and install the Python package in your current environment:

maturin develop

You can also use the maturin tool to build the wheels or publish the package. See the maturin documentation for more details.

Metadata

Release files for pyroexr 0.2.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 pyroexr 0.2.0
File Interpreter ABI Platform
pyroexr-0.2.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
pyroexr-0.2.0-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl CPython 3.10 abi3 Linux glibc 2.5+ x86-64 Details

Total release size: 748.7 kB

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

Download URL pyroexr-0.2.0-cp310-abi3-win_amd64.whl
Size 335.9 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d170c18578275bacd2750afea18bece9c57d3f389a1ffa88f826ae200d2a0caf
BLAKE2b-256 checksum
How to use checksums
ac32a9b1bb8ba3e10cd6e6924ea235cc29696226fc2de370f95767ae80a3fca0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.2

Release files / pyroexr-0.2.0-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl

Download URL pyroexr-0.2.0-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Size 412.8 kB
Tags CPython 3.10 Linux glibc 2.5+ x86-64 abi3
SHA-256 checksum
How to use checksums
22c573a5b96e8793443dfe1fc2ab404f73d57f91e89961b315e7ce4443b48a95
BLAKE2b-256 checksum
How to use checksums
8d090fdada23d9d359bc023ee0492b75cf8cfea2bbf1b7f7351a1a281e66296f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.3-beta.6

Security for pyroexr 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.2.0 This release

2 release files No 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