Registry / devops / nipreps-versions

nipreps-versions

JSON →
library1.2.0pypypi✓ verified 83d ago

Version schemes and utilities for NiPreps tools (NiPreps version 1.2.0). Provides standardized versioning logic (pep440, semver, git-based) for neuroimaging preprocessing workflows. Released irregularly as needed.

pip install nipreps-versions
INSTALL
IMPORT
SIG · NIPREPS-VERSIONS
N
nipreps-versions
devopspythonv1.2.0
Install
2.2s avg
Import
Disk
21MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.2s · import 0.000s · 20MB
21MB installed
● package 21MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

nipreps_versions
import nipreps_versions
Correct import path
VersionInfo
from nipreps_versions import VersionInfo
from nipreps_versions.version import VersionInfo
VersionInfo is exposed at package level

Basic usage: parse version strings and check compliance.

from nipreps_versions import VersionInfo # Parse a version string ver = VersionInfo('1.2.0') print(ver) # Get version from a git repository (requires git) # ver = VersionInfo.from_git() # Check PEP 440 compliance print(ver.is_pep440)
Debug
Known issues
gotchaVersionInfo.from_git() requires the package to be in a git repository. In deployed/installed environments, use VersionInfo.from_installed() or plain constructor.
fix
Use VersionInfo version string directly or VersionInfo.from_installed() for installed packages.
affects: all
gotchaThe library uses Python 3.10+ only. Projects on older Python versions will get ImportError.
fix
Upgrade to Python >=3.10 or pin nipreps-versions to version <1.0.0 (if available).
affects: >=1.0.0
breakingIn version 1.0.0, the API changed: VersionInfo no longer inherits from tuple. Comparisons may behave differently.
fix
Use .version tuple property or explicit comparison methods.
affects: >=1.0.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'nipreps_versions'
Package not installed or installed under different name (e.g., 'nipreps-versions' with hyphen).
fix
Install via pip install nipreps-versions; import uses underscores.
TypeError: 'VersionInfo' object does not support indexing
Trying to access VersionInfo like a tuple (common pre-1.0 behavior).
fix
Use ver.version attribute (a tuple) instead of ver[0].
Upgrade
Version history
1.2.0latest on PyPI · released Apr 8, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
nipreps-versions — pip install nipreps-versions · libregistry