Metadata-Version: 2.4
Name: nwversioninfofiles
Version: 2.0.1
Summary: A library that facilitates the creation of Version Info Files for PyInstaller.
Home-page: https://github.com/numbworks/nwversioninfofiles
Author: numbworks
License: MIT
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: pyinstaller>=6.11.1
Dynamic: author
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# nwversioninfofiles

## Introduction

This packages consists of the following modules:

- `nwversioninfofiles` is a library that facilitates the creation of Version Info Files for PyInstaller.
- `nwversioninfofilescli` is a command-line application built on the top of `nwversioninfofiles`.

## Getting Started

I'll use Debian as operating system, but the concept is similar for Windows or Mac.

Procedure:

1. Install `pip` and `venv`:

```sh
sudo apt install python3-pip python3.12-venv
```

2. Create a virtual environment:

```sh
python3 -m venv /tmp/nwpackageversions
source /tmp/nwpackageversions/bin/activate
```

3. Download and install the package:

```sh
pip install nwpackageversions
```

4. Enter in the interactive Python environment:

```sh
python3
```
```
Python 3.12.3 (main, Aug 31 2026, 10:18:26) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
```

5. Try out if the library works:

```python
from nwpackageversions import VersionInfoFileVerifier

vinf_verifier : VersionInfoFileVerifier = VersionInfoFileVerifier()
```

6. Exit from the interactive Python environment:

```python
exit()
```

7. Try out if the CLI application works:

```sh
nwpackageversionscli
```

8. Deactivate and delete the virtual environment:

```sh
deactivate
rm -rf /tmp/nwpackageversions
```

9. Done!

## Examples

Run it with only mandatory arguments:

```sh
nwpackageversionscli --company_name "numbworks" --legal_copyright "numbworks" --file_description "An app that does something." --file_version "1.0.0" --product_name "numbworks" --original_filename "app.exe"
```

```
***********************************************************
'##::: ##:'##:::::'##:'##::::'##:'####:'##::: ##:'########:
 ###:: ##: ##:'##: ##: ##:::: ##:. ##:: ###:: ##: ##.....::
 ####: ##: ##: ##: ##: ##:::: ##:: ##:: ####: ##: ##:::::::
 ## ## ##: ##: ##: ##: ##:::: ##:: ##:: ## ## ##: ######:::
 ##. ####: ##: ##: ##:. ##:: ##::: ##:: ##. ####: ##...::::
 ##:. ###: ##: ##: ##::. ## ##:::: ##:: ##:. ###: ##:::::::
 ##::. ##:. ###. ###::::. ###::::'####: ##::. ##: ##:::::::
..::::..:::...::...::::::...:::::....::..::::..::..::::::::
****************************************Version: 2.0.1*****

company_name: 'numbworks'
file_description: 'An app that does something.'
file_version: '1.0.0'
legal_copyright: 'numbworks'
original_filename: 'app.exe'
product_name: 'numbworks'
output_path: 'None'
verify: 'False'
```

Run it with `output_path`:

```sh
nwpackageversionscli --company_name "numbworks" --legal_copyright "numbworks" --file_description "An app that does something." --file_version "1.0.0" --product_name "numbworks" --original_filename "app.exe" --output_path "version_info_file.txt"
```

Run it with `verify`:

```
nwpackageversionscli --company_name "numbworks" --legal_copyright "numbworks" --file_description "An app that does something." --file_version "1.0.0" --product_name "numbworks" --original_filename "app.exe" --verify
```

## Links

- Source: https://github.com/numbworks/nwpackageversions
- License: https://github.com/numbworks/nwpackageversions/blob/master/LICENSE

## Total Downloads (PyPi)

[![PyPI Downloads](https://static.pepy.tech/personalized-badge/nwpackageversions?period=total&units=NONE&left_color=BLACK&right_color=BLUE&left_text=TOTAL+DOWNLOADS)](https://pepy.tech/projects/nwpackageversions)
