skillfed

pyinstaller-versionfile

Create a windows version-file from metadata stored in a simple self-written YAML file or obtained from an installed distribution.

pyinstaller-versionfile v3.1.0 181.5K downloads/30d#10,125 on PyPI48
Permissive license MIT Active released

What it is and what it does

pyinstaller-versionfile automates the creation of Windows VERSIONINFO resource files—metadata blocks embedded in .exe files that display version, company, copyright, and product information in file properties. It bridges the gap between Python package metadata and PyInstaller's version-file format, eliminating manual crafting and version-number synchronization.

The package offers both a command-line interface (pyivf-make_version) and a functional Python API. You can source metadata from a YAML configuration file, extract it from an installed Python distribution, or specify values directly in code. It handles version strings flexibly—from hardcoded values to external files to CI build numbers—making it practical for automated build pipelines.

Use it for:

  • Embed version metadata in PyInstaller-bundled Windows applications without manual VERSIONINFO file editing.
  • Automate version-file generation in CI/CD pipelines by reading version from distribution metadata or environment.
  • Maintain synchronized version numbers across Python package and Windows executable properties.
  • Generate VERSIONINFO resources from YAML configuration for reproducible, version-controlled builds.
  • Extract and repackage metadata from installed editable distributions into Windows version resources.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Generates Windows VERSIONINFO resource files for PyInstaller from YAML metadata or installed Python package distributions, automating version-file creation for bundled applications.

Yes. If you bundle Python applications for Windows with PyInstaller and need version metadata in the executable, this package eliminates tedious manual VERSIONINFO file creation. Low install friction, active maintenance, permissive license, and no known vulnerabilities make it a straightforward addition to Windows build workflows.

Install

pyinstaller-versionfile on PyPI

pip

pip install pyinstaller-versionfile

uv

uv add pyinstaller-versionfile

poetry

poetry add pyinstaller-versionfile

Installing pyinstaller-versionfile

Before you install

Low friction: pure Python wheel with only three lightweight runtime dependencies (Jinja2, PyYAML, packaging). Actively maintained with recent commits and no known vulnerabilities.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for commercial and open-source projects alike.

Quickstart

pip install pyinstaller-versionfile

import pyinstaller_versionfile

pyinstaller_versionfile.create_versionfile(
    output_file="versionfile.txt",
    version="1.2.3.4",
    company_name="My Company",
    product_name="My App"
)

Windows-only: the generated VERSIONINFO resource is specific to Windows executables; PyInstaller must be available to use the output file.

Verify before relying

  • Whether the package handles all Windows language and character-set codes correctly in practice.
  • Performance characteristics when extracting metadata from large or complex distributions.

Package facts

License MIT (permissive)
Python support supports the current Python release (<4.0,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — Jinja2, PyYAML, packaging
Maintenance actively maintained — 145 days since the last release
Last repo commit
First released
Downloads 181,493/month — #10,125 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pyinstaller_versionfile-3.1.0-py3-none-any.whl

Environment :: ConsoleLicense :: OSI Approved :: MIT LicenseOperating System :: Microsoft :: WindowsProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software DevelopmentTopic :: Software Development :: Build Tools

Tags

windows version file generatorpyinstaller versioninfo resourcewindows exe metadatayaml version file creationpyinstaller version resourcewindows versioninfo automationexe version info builder
windows-packagingpyinstaller-integrationbuild-automation

More Software Development packages