Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyroexr-0.2.0-cp310-abi3-win_amd64.whl (335.9 kB view details)

Uploaded CPython 3.10+Windows x86-64

pyroexr-0.2.0-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl (412.8 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.5+ x86-64

File details

Details for the file pyroexr-0.2.0-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: pyroexr-0.2.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 335.9 kB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.13.2

File hashes

Hashes for pyroexr-0.2.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d170c18578275bacd2750afea18bece9c57d3f389a1ffa88f826ae200d2a0caf
MD5 2d538ec1a5b51b746c386f09cbf3f1c1
BLAKE2b-256 ac32a9b1bb8ba3e10cd6e6924ea235cc29696226fc2de370f95767ae80a3fca0

See more details on using hashes here.

File details

Details for the file pyroexr-0.2.0-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pyroexr-0.2.0-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 22c573a5b96e8793443dfe1fc2ab404f73d57f91e89961b315e7ce4443b48a95
MD5 1ddac4aa443f592e9866615331b977a1
BLAKE2b-256 8d090fdada23d9d359bc023ee0492b75cf8cfea2bbf1b7f7351a1a281e66296f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page