Skip to main content
Build Status DOI Python version PyPi version Documentation Status https://codecov.io/gh/mhe/pynrrd/branch/master/graph/badge.svg

pynrrd

pynrrd is a pure-Python module for reading and writing NRRD files into and from numpy arrays.

Requirements

  • numpy

  • typing_extensions

v1.0+ requires Python 3.7 or above. If you have an older Python version, please install a v0.x release instead.

Installation

Install via pip and GitHub

pip install git+https://github.com/mhe/pynrrd.git

Example usage

import numpy as np
import nrrd

# Some sample numpy data
data = np.zeros((5,4,3,2))
filename = 'testdata.nrrd'

# Write to a NRRD file
nrrd.write(filename, data)

# Read the data back from file
readdata, header = nrrd.read(filename)
print(readdata.shape)
print(header)

Next Steps

For more information, see the documentation.

License

See the LICENSE for more information.

Metadata

Release files for pynrrd 1.1.4

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

Source distribution (sdist)

Source distribution for pynrrd 1.1.4
File Size Uploaded Provenance Actions
pynrrd-1.1.4.tar.gz 20.2 kB Without provenance Details for pynrrd-1.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pynrrd 1.1.4
File Interpreter ABI Platform Actions
pynrrd-1.1.4-py3-none-any.whl Python 3 none any Details for pynrrd-1.1.4-py3-none-any.whl

Total release size: 42.0 kB

Release files / pynrrd-1.1.4.tar.gz

Download URL pynrrd-1.1.4.tar.gz
Size 20.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cfd9d7cc27aec0ca39965bf6dcd271c42abd7216d3c9b12ef226e7683756798e
BLAKE2b-256 checksum
How to use checksums
716bc1f1c8666e44c2276f921fc3fc9f2144c310afcc13f037a273f4c0a98c12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pynrrd-1.1.4-py3-none-any.whl

Download URL pynrrd-1.1.4-py3-none-any.whl
Size 21.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
805be32090080ddb152dff313c234e889b64135f13710e0e18daa40ac31c8c8f
BLAKE2b-256 checksum
How to use checksums
46059b9a01e613221274665b2499ae1421f5609966343451ab02be3352b5c0aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for pynrrd 1.1.4

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.

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