Skip to main content

VersionInfo helper script for PyInstaller

Project description

VersionInfo helper script for PyInstaller

This repository contains helper scripts to dynamically create VersionInfo objects that can be embedded in .exe files created by PyInstaller.

This project was created because existing solutions to embed version information inside executables relied on creating artifact files that get read (and eval-ed) by PyInstaller during the build process. Dynamically creating such files essentially boiled down to inserting data in a string template, with no guides to the user if their entered data is valid or not. A bit of exploration of PyInstaller's source code and official Microsoft documentation revealed that it should be possible to provide PyInstaller with necessary data straight from .spec files without file-read-and-eval step. This approach has the added bonus of being type hint compatible, offering rich auto-complete in supported IDEs.

Installation

pip install versioninfo_helper

Usage

See example_simple.onefile.spec and example_dynamic.onefile.spec for examples on how to integrate VersionInfo creation directly into PyInstaller .spec files.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

versioninfo_helper-0.1.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

versioninfo_helper-0.1.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file versioninfo_helper-0.1.0.tar.gz.

File metadata

  • Download URL: versioninfo_helper-0.1.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for versioninfo_helper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 97bdc404920ec047dd09cec62453e4a2a9b6b4b8c6070568dd4b321a1831c834
MD5 669462a868517346159b9b73b204f410
BLAKE2b-256 63c35fc54a131c3e498c03031bf5eff3bb9bb95a2c8d01a4d3349a52116cb2f4

See more details on using hashes here.

File details

Details for the file versioninfo_helper-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for versioninfo_helper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e22dc57b726033a6e02a3d0576a635b4a2a631b62ea19dfebe6d7f049d18a93
MD5 3b87f98e3cad24400b0e6bf2556146fe
BLAKE2b-256 c710a0fe16aa26c117ed3f7b1fe4097de6a9cc94c862efdc20c96a5c32001963

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page