semver4
Semantic versioning module enriched by hotfix version
Decision gist · record as of 2026-08-14
Yes, if you need the four-part versioning scheme for hotfix management. The package is lightweight with no dependencies and permissive licensing. However, maintenance is dormant (last release March 2024, no recent commits), so treat it as stable-but-unsupported; do not expect bug fixes or updates if issues arise. Suitable for projects that have already adopted this versioning model or are willing to lock to a specific version.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later.
- YAML serialization requires PyYAML to be installed separately.
- Low install friction with no runtime dependencies.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you may use, modify, and distribute this package freely with minimal restrictions.
last release 2024-03-24 (873 days) · last repo commit 2024-12-30
0 known vulnerabilities (OSV.dev, 2026-08-14) · 416,108 downloads/mo, #6,821 on PyPI
Alternatives
Verify before relying
from semver4 import Version4, SemVersion
# Four-part version with hotfix component
v = Version4('0.4.2.1-beta+build123')
print(v.fix) # 1
v.inc_fix()
print(v) # 0.4.2.2-beta+build123
# Standard semver 2.0
v2 = SemVersion('1.2.3-alpha+007')
print(v2) # 1.2.3-alpha+007- Whether the package is actively maintained or has been abandoned despite the dormant status
- Real-world adoption and stability of the four-part versioning scheme in production environments
- Whether YAML serialization features are documented or tested beyond the excerpt
What it is and what it does
semver4 extends semantic versioning with a fourth numeric component to distinguish hotfix releases from standard patch releases. The standard semver 2.0 spec treats all backward-compatible bug fixes as patch increments, but this creates ambiguity when a hotfix must ship immediately while higher patch versions already exist as pre-release candidates. semver4 solves this by adding a 'fix' component: a version like 0.4.2.1 represents a hotfix to 0.4.2 without displacing pending 0.4.3 or 0.4.4 pre-releases.
The package provides two classes: Version4 for the extended four-part scheme and SemVersion for standard semver 2.0 parsing. Both support comparison, string representation, component mutation (inc_major, inc_minor, inc_patch, inc_fix), and serialization to JSON and YAML. It has no runtime dependencies and requires Python 3.8 or later.
Use it for
- Distinguish hotfix releases from standard patch releases when pre-release versions already exist for higher patch numbers
- Parse and compare version strings that include a fourth numeric component in your release pipeline
- Serialize version objects to JSON or YAML for configuration files or API responses
- Migrate from standard semver 2.0 parsing while maintaining backward compatibility via the SemVersion class
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need the four-part versioning scheme for hotfix management.
The package is lightweight with no dependencies and permissive licensing. However, maintenance is dormant (last release March 2024, no recent commits), so treat it as stable-but-unsupported; do not expect bug fixes or updates if issues arise. Suitable for projects that have already adopted this versioning model or are willing to lock to a specific version.
Install
semver4 on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance is dormant—last release was 2024-03-24 and no commits since 2024-12-30—so expect no active support or updates.
Requires Python 3.8 or later. YAML serialization requires PyYAML to be installed separately.
License in practice
MIT license is permissive; you may use, modify, and distribute this package freely with minimal restrictions.
Quickstart
from semver4 import Version4, SemVersion
# Four-part version with hotfix component
v = Version4('0.4.2.1-beta+build123')
print(v.fix) # 1
v.inc_fix()
print(v) # 0.4.2.2-beta+build123
# Standard semver 2.0
v2 = SemVersion('1.2.3-alpha+007')
print(v2) # 1.2.3-alpha+007
Verify before relying
- Whether the package is actively maintained or has been abandoned despite the dormant status
- Real-world adoption and stability of the four-part versioning scheme in production environments
- Whether YAML serialization features are documented or tested beyond the excerpt
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 873 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 416,108 / month, #6,821 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: semver4-0.0.1b8-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “semantic versioning with hotfix”
- semver4Parses and manipulates semantic versions with an optional fourth…
- pyarrow-hotfixDisables the CVE-2023-47248 security vulnerability in older PyArrow…
- bump-my-versionAutomates version number management in projects by parsing,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also semver · release-tag · semantic-version · bump-my-version · pyarrow-hotfix · bump · parver · autosemver · python-semantic-release · node-semver