{"id":29290247,"url":"https://github.com/mhe/pynrrd","last_synced_at":"2025-07-06T06:02:52.434Z","repository":{"id":649394,"uuid":"769951","full_name":"mhe/pynrrd","owner":"mhe","description":"Simple pure-python module for reading and writing nrrd files.","archived":false,"fork":false,"pushed_at":"2025-01-23T05:13:22.000Z","size":371,"stargazers_count":122,"open_issues_count":8,"forks_count":53,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-03T04:05:52.267Z","etag":null,"topics":["nrrd","numpy","python"],"latest_commit_sha":null,"homepage":"https://pynrrd.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhe.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-07-12T07:46:35.000Z","updated_at":"2025-04-09T02:36:57.000Z","dependencies_parsed_at":"2024-11-05T11:27:02.852Z","dependency_job_id":null,"html_url":"https://github.com/mhe/pynrrd","commit_stats":{"total_commits":225,"total_committers":25,"mean_commits":9.0,"dds":0.5555555555555556,"last_synced_commit":"d7f1d0ced4aadb01cc160b16e2763d27e7e3d386"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/mhe/pynrrd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhe%2Fpynrrd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhe%2Fpynrrd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhe%2Fpynrrd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhe%2Fpynrrd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhe","download_url":"https://codeload.github.com/mhe/pynrrd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhe%2Fpynrrd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263632696,"owners_count":23491637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nrrd","numpy","python"],"created_at":"2025-07-06T06:01:43.755Z","updated_at":"2025-07-06T06:02:52.428Z","avatar_url":"https://github.com/mhe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://travis-ci.org/mhe/pynrrd.svg?branch=master\n    :target: https://travis-ci.org/mhe/pynrrd\n    :alt: Build Status\n\n.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.592532.svg\n   :target: https://doi.org/10.5281/zenodo.592532\n   :alt: DOI\n\n.. image:: https://img.shields.io/pypi/pyversions/pynrrd.svg\n    :target: https://img.shields.io/pypi/pyversions/pynrrd.svg\n    :alt: Python version\n\n.. image:: https://badge.fury.io/py/pynrrd.svg\n    :target: https://badge.fury.io/py/pynrrd\n    :alt: PyPi version\n\n.. image:: https://readthedocs.org/projects/pynrrd/badge/?version=stable\n    :target: https://pynrrd.readthedocs.io/en/stable/?badge=stable\n    :alt: Documentation Status\n\n.. image:: https://codecov.io/gh/mhe/pynrrd/branch/master/graph/badge.svg\n  :target: https://codecov.io/gh/mhe/pynrrd\n\n|\n\npynrrd\n======\npynrrd is a pure-Python module for reading and writing `NRRD \u003chttp://teem.sourceforge.net/nrrd/\u003e`_ files into and\nfrom numpy arrays.\n\nRequirements\n------------\n\n* `numpy \u003chttps://numpy.org/\u003e`_\n* typing_extensions\n\nv1.0+ requires Python 3.7 or above. If you have an older Python version, please install a v0.x release instead.\n\nInstallation\n------------\n\nInstall via pip and PyPi repository (recommended)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n.. code-block:: bash\n\n    pip install pynrrd\n\nInstall via pip and GitHub\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n.. code-block:: bash\n\n    pip install git+https://github.com/mhe/pynrrd.git\n\nInstall from source (recommended for contributing to pynrrd)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nFor developers that want to contribute to pynrrd, you can clone the pynrrd repository and install it using the following commands:\n\n.. code-block:: bash\n\n    git clone https://github.com/mhe/pynrrd.git\n    cd pynrrd\n    pip install .\n\nor, for the last line, instead use:\n\n.. code-block:: bash\n\n    pip install -e .\n\nto install in 'develop' or 'editable' mode, where changes can be made to the local working code and Python will use\nthe updated pynrrd code.\n\n**Tests**\n\nThe tests can be run via the following command from the base directory:\n\n.. code-block:: bash\n\n    python -m unittest discover -v nrrd/tests\n\n**Format and Lint code**\n\n This repository uses pre-commit hooks to run format and lint the code and they are enforced in CI. See [pre-commit](https://pre-commit.com)\n\nExample usage\n-------------\n.. code-block:: python\n\n    import numpy as np\n    import nrrd\n\n    # Some sample numpy data\n    data = np.zeros((5,4,3,2))\n    filename = 'testdata.nrrd'\n\n    # Write to a NRRD file\n    nrrd.write(filename, data)\n\n    # Read the data back from file\n    readdata, header = nrrd.read(filename)\n    print(readdata.shape)\n    print(header)\n\n\nNext Steps\n----------\nFor more information, see the `documentation \u003chttp://pynrrd.readthedocs.io/\u003e`_.\n\nLicense\n-------\nSee the `LICENSE \u003chttps://github.com/mhe/pynrrd/blob/master/LICENSE\u003e`_ for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhe%2Fpynrrd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhe%2Fpynrrd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhe%2Fpynrrd/lists"}