Registry / devops / mozversion

mozversion

JSON →
library2.4.0pypypi✓ verified 84d ago

Library to get version information for Mozilla applications (Firefox, Thunderbird, Fennec, etc.). Current version: 2.4.0. Release cadence: low, last release was in 2017. It reads application.ini and platform.ini to extract version data.

pip install mozversion
INSTALL
IMPORT
SIG · MOZVERSION
M
mozversion
devopspythonv2.4.0
Install
2.5s avg
Import
269ms
Disk
24MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.4.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.292s · 28.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.5s · import 0.246s · 29MB
24MB installed
● package 24MB
Code
Verified usage

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

get_version
from mozversion import get_version
import mozversion
get_version is the primary function; importing module directly requires mozversion.get_version()

Retrieves version information from a Mozilla application binary.

from mozversion import get_version # Replace with path to your Firefox binary or directory binary = '/usr/lib/firefox/firefox' try: version_info = get_version(binary=binary) print(version_info) except Exception as e: print(f'Error: {e}')
Debug
Known issues
gotchaget_version() expects either a binary path or a directory containing the application. If you pass a directory, ensure it contains application.ini and platform.ini.
fix
Always pass the path to the executable binary (e.g., firefox) for best results.
affects: all
deprecatedThe library is no longer actively maintained. It may not work with the latest Mozilla application versions (Firefox 60+).
fix
Consider using mozversion-1 or parsing application.ini manually if needed.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'mozversion'
mozversion not installed or installed in a different Python environment.
fix
Run pip install mozversion in your active environment.
ValueError: No application.ini or platform.ini found
The provided path does not point to a valid Mozilla application directory or the files are missing.
fix
Ensure the binary path is correct and that the binary hasn't been removed. Try passing the directory containing the binary instead.
Upgrade
Version history
2.4.0latest on PyPI · released Jul 28, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
mozversion — pip install mozversion · libregistry