{"id":24337,"library":"pyinstaller-versionfile","title":"pyinstaller-versionfile","description":"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.","status":"active","version":"3.1.0","language":"python","source_language":"en","source_url":"https://github.com/DudeNr33/pyinstaller-versionfile","tags":["pyinstaller","version-info","windows","metadata"],"install":[{"cmd":"pip install pyinstaller-versionfile","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Used to parse YAML version files","package":"pyyaml","optional":false}],"imports":[{"wrong":"from pyinstaller_versionfile import create_version_file","symbol":"create_versionfile","correct":"from pyinstaller_versionfile import create_versionfile"},{"symbol":"create_versionfile_from_distribution","correct":"from pyinstaller_versionfile import create_versionfile_from_distribution"},{"symbol":"Writer","correct":"from pyinstaller_versionfile import Writer"}],"quickstart":{"code":"from pyinstaller_versionfile import create_version_file\n\ncreate_version_file(\n    output_file=\"version_info.txt\",\n    version=\"1.0.0\",\n    company_name=\"My Company\",\n    file_description=\"My App\",\n    internal_name=\"myapp\",\n    legal_copyright=\"Copyright 2025 My Company\",\n    original_filename=\"myapp.exe\",\n    product_name=\"My App\",\n    translations=[\"040904B0\"]  # US English, Windows CP1252\n)","lang":"python","description":"Create a version file from scratch using keyword arguments."},"warnings":[{"fix":"Check the changelog for v3.0.0 migration steps. For v3.x, use the new 'create_version_file' function or 'Metadata' builder.","message":"In 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.","severity":"breaking","affected_versions":"<3.0.0"},{"fix":"Import using 'from pyinstaller_versionfile import ...', not 'from pyinstaller-versionfile import ...'.","message":"The 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Use a list of valid locale hex codes. A common example is [\"040904B0\"] for English (United States) with Windows CP1252 charset.","message":"The 'translations' parameter expects a list of strings in hex locale format (e.g., '040904B0'). Incorrect formatting results in a malformed version file.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'3.1.0':26 'cadenc':28 'creat':4 'current':24 'distribut':21 'file':9,16 'info':8,33 'instal':20 'irregular':29 'metadata':15,23,35 'pyinstal':2,11,30 'pyinstaller-versionfil':1 'releas':27 'version':7,25,32 'version-info':6,31 'versionfil':3 'window':5,34 'yaml':14","created_at":"2026-05-01T08:12:32.417017+00:00","updated_at":"2026-05-01T08:12:32.417017+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"3.1.0","cli_name":"pyinstaller-versionfile","cli_version":"sh: 1: pyinstaller-versionfile: not found","type":"library","homepage":null,"github":"https://github.com/DudeNr33/pyinstaller-versionfile","docs":null,"changelog":null,"pypi":"https://pypi.org/project/pyinstaller-versionfile/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}