--- id: pynrrd version: "1.1.3" license: Copyright (c) 2012 Maarten H. Everts and contributors. See AUTHORS for more details. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated… (full text in the JSON record) license_treatment: permissive maintenance: dormant --- # pynrrd — Pure python module for reading and writing NRRD files. License: permissive · Maintenance: dormant · Downloads: 142.6K/mo ## What it is and what it does pynrrd is a pure-Python library that serializes numpy arrays to and from NRRD files, a format commonly used in medical imaging and scientific visualization. It depends only on numpy and typing_extensions, making it lightweight and portable. The library handles both reading NRRD headers and data into memory and writing numpy arrays back to disk with full header metadata preservation. The package is stable and dormant: the last release was 568 days ago, but the repository remains active (last commit 2025-01-23) and carries no known security vulnerabilities. It supports Python 3.7 through 3.13 and is classified as a scientific engineering tool. Use it when you need to exchange volumetric or medical imaging data with tools that speak NRRD, or when your pipeline requires programmatic control over NRRD serialization. Use it for: - Load volumetric medical imaging data stored in NRRD format into numpy for analysis or processing. - Export numpy arrays as NRRD files for interchange with medical imaging software or research pipelines. - Preserve and read NRRD headers (metadata, encoding, axis information) alongside raw volumetric data. - Integrate NRRD support into scientific computing workflows that already use numpy. - Convert between NRRD and other formats via numpy as an intermediate representation. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Reads and writes NRRD (Nearly Raw Raster Data) files to and from numpy arrays in pure Python, enabling interchange of volumetric and medical imaging data. Yes. pynrrd is a stable, low-friction library with no security issues and minimal dependencies. Install it if you work with NRRD files in scientific or medical imaging contexts. The dormant maintenance status is not a concern for a format-conversion tool; the last commit is recent and the repository is not archived. Suitable for production use in stable workflows. ## Install pip install pynrrd uv add pynrrd poetry add pynrrd ## Installing pynrrd Before you install: Low friction: pure-Python wheel with only numpy and typing_extensions as runtime dependencies. Dormant maintenance (568 days since last release) but repository is not archived and last commit is recent; suitable for stable, read-write workflows where active development is not expected. License in practice: MIT license (permissive): you may use, modify, and distribute pynrrd freely in commercial and private projects, provided you retain the copyright notice and license text. Quickstart: pip install pynrrd import pynrrd import numpy data = numpy.zeros((5, 4, 3, 2)) pynrrd.write('testdata.nrrd', data) readdata, header = pynrrd.read('testdata.nrrd') Requires Python 3.7 or above; v1.0+ does not support older versions. Verify before relying: - Performance characteristics and memory efficiency for large volumetric datasets. - Completeness of NRRD format specification coverage (which NRRD versions and encodings are fully supported). - Compatibility with non-standard or vendor-specific NRRD variants. ## Package facts - License: Copyright (c) 2012 Maarten H. Everts and contributors. See AUTHORS for more details. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated… (full text in the JSON record) (permissive) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 142.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags nrrd file format reader writer, volumetric image data numpy, medical imaging file io, nrrd to numpy array, 3d image file handling, teem nrrd python, scientific image format, file-format, medical-imaging, volumetric-data [View on SkillFed](https://skillfed.io/packages/pynrrd) · [View on PyPI](https://pypi.org/project/pynrrd/)