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-1.0.0.tar.gz (66.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

versioninfo_helper-1.0.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: versioninfo_helper-1.0.0.tar.gz
  • Upload date:
  • Size: 66.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for versioninfo_helper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8a991648f64c9d21a0bbe8ded6182b90d741721ef99c895c9a95eb2390ddec4c
MD5 03926da5b96a5a2a3efec89e3c2ebd6b
BLAKE2b-256 0edf8fc585b73b9656222d18bbc1a188d2615d0e65833d5b228214e39abce72d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for versioninfo_helper-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed6348bcd857c84ad389843e0508a25c2f5919d4daf2715c25907508b3c21de2
MD5 599c38fe3c77e9135f2e0e35b32560b8
BLAKE2b-256 8aa3135ecd8a269980c35461caf2f75ad4b24b742cb9c935736ca420539cf855

See more details on using hashes here.

Supported by

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