Registry / devops / pyinstaller-versionfile

pyinstaller-versionfile

JSON →
library3.1.0pypypi✓ verified 82d ago

Creates Windows version-info files for PyInstaller from a YAML metadata file or from an installed distribution's metadata. Current version: 3.1.0. Release cadence: irregular.

pip install pyinstaller-versionfile
INSTALL
IMPORT
SIG · PYINSTALLER-VERSIO
P
pyinstaller-versionfile
devopspythonv3.1.0
Install
2.0s 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 v3.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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.0s · import 0.000s · 23MB
21MB installed
● package 21MB
Code
Verified usage

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

create_versionfile
from pyinstaller_versionfile import create_versionfile
from pyinstaller_versionfile import create_version_file
create_versionfile_from_distribution
from pyinstaller_versionfile import create_versionfile_from_distribution
Writer
from pyinstaller_versionfile import Writer

Create a version file from scratch using keyword arguments.

from pyinstaller_versionfile import create_version_file create_version_file( output_file="version_info.txt", version="1.0.0", company_name="My Company", file_description="My App", internal_name="myapp", legal_copyright="Copyright 2025 My Company", original_filename="myapp.exe", product_name="My App", translations=["040904B0"] # US English, Windows CP1252 )
pyinstaller-versionfile --version
Debug
Known issues
breakingIn v3.0.0, the module name changed from 'pyinstaller_versionfile' to 'pyinstaller_versionfile' (same), but the import path 'pyinstaller_versionfile' remains. No breaking import change, but the internal API was overhauled. If you used 'Metadata' class prior to v3.0, it may have been renamed or its methods changed.
fix
Check the changelog for v3.0.0 migration steps. For v3.x, use the new 'create_version_file' function or 'Metadata' builder.
affects: <3.0.0
gotchaThe package name on PyPI is 'pyinstaller-versionfile' (with hyphen), but the Python module uses underscores: 'pyinstaller_versionfile'. Using a hyphen in an import statement fails.
fix
Import using 'from pyinstaller_versionfile import ...', not 'from pyinstaller-versionfile import ...'.
affects: all
gotchaThe 'translations' parameter expects a list of strings in hex locale format (e.g., '040904B0'). Incorrect formatting results in a malformed version file.
fix
Use a list of valid locale hex codes. A common example is ["040904B0"] for English (United States) with Windows CP1252 charset.
affects: all
Upgrade
Version history
3.1.0latest on PyPI · released Mar 22, 2026
Audit
Dependencies
pyyamlrequiredUsed to parse YAML version files
Agent activity
9 hits · last 30 days
node
6
Resources
pyinstaller-versionfile — pip install pyinstaller-versionfile · libregistry