Code |
|
Tests |
|
PyPI |
|
Packages |
|
License & DOI |
|
Read and write access to common neuroimaging file formats, including: ANALYZE (plain, SPM99, SPM2 and later), GIFTI, NIfTI1, NIfTI2, CIFTI-2, MINC1, MINC2, AFNI BRIK/HEAD, ECAT and Philips PAR/REC. In addition, NiBabel also supports FreeSurfer’s MGH, geometry, annotation and morphometry files, and provides some limited support for DICOM.
NiBabel’s API gives full or selective access to header information (metadata), and image data is made available via NumPy arrays. For more information, see NiBabel’s documentation site and API reference.
Installation
To install NiBabel’s current release with pip, run:
pip install nibabel
To install the latest development version, run:
pip install git+https://github.com/nipy/nibabel
When working on NiBabel itself, it may be useful to install in “editable” mode:
git clone https://github.com/nipy/nibabel.git pip install -e ./nibabel
For more information on previous releases, see the release archive or development changelog.
Testing
During development, we recommend using tox to run nibabel tests:
git clone https://github.com/nipy/nibabel.git cd nibabel tox
To test an installed version of nibabel, install the test dependencies and run pytest:
pip install nibabel[test] pytest --pyargs nibabel
For more information, consult the developer guidelines.
Mailing List
Please send any questions or suggestions to the neuroimaging mailing list.
License
NiBabel is licensed under the terms of the MIT license. Some code included with NiBabel is licensed under the BSD license. For more information, please see the COPYING file.
Citation
NiBabel releases have a Zenodo Digital Object Identifier (DOI) badge at the top of the release notes. Click on the badge for more information.
Metadata
Release files for nibabel 5.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nibabel-5.4.2.tar.gz | 4.7 MB | With provenance | Details for nibabel-5.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nibabel-5.4.2-py3-none-any.whl | Python 3 | none | any | Details for nibabel-5.4.2-py3-none-any.whl |
Total release size: 8.0 MB
Release files / nibabel-5.4.2.tar.gz
| Download URL | nibabel-5.4.2.tar.gz |
|---|---|
| Size | 4.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5f4b9076a13178ae7f7acf18c8dbd503ee1c4d5c0c23b85df7be87efcbb49da
|
|
BLAKE2b-256 checksum How to use checksums |
a3013d2cc510c616bc8e27be17a063070d9126f69407961594a9ae734ea51121
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 11, 2026.
Transparency logRelease files / nibabel-5.4.2-py3-none-any.whl
| Download URL | nibabel-5.4.2-py3-none-any.whl |
|---|---|
| Size | 3.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
553482c5f1e1034fc312edf6fb7f32236c0056439845d1c29293b7e8c98d4854
|
|
BLAKE2b-256 checksum How to use checksums |
3bd7601b6396b33536811668935faa790112266c70661be94555999be431f86f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 11, 2026.
Transparency logSecurity for nibabel 5.4.2
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for nibabel-5.4.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 11, 2026.
Transparency logA 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.