Install & Compatibility
Where this runs
tested against v2.1.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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 19MB
17MB installed
● package 17MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
parse_version_string
✓ from microversion_parse import parse_version_string
✗ from microversion_parse import parse_version
Version
✓ from microversion_parse import Version
get_version
✓ from microversion_parse import get_version
Parse microversion from request headers or version strings.
from microversion_parse import parse_version, parse_version_string
from webob import Request
# Example with a WebOb request
req = Request.blank('/', headers={'OpenStack-API-Version': 'compute 2.1'})
version = parse_version(req, 'compute')
print(version) # ('compute', 2, 1)
# Parse a version string directly
ver = parse_version_string('compute 2.1')
print(ver) # ('compute', 2, 1)
Upgrade
Version history
2.1.0latest on PyPI · released Dec 4, 2025
Audit
Dependencies
webobrequiredRequired for parsing HTTP request headers.