Metadata-Version: 2.4
Name: py_package_exporter
Version: 0.0.4
Summary: A package to help building your python apps with PyInstaller
Home-page: https://github.com/RadoslawDrab/PyExporter
Author: Radosław Drab
License: MIT License
        
        Copyright (c) 2025 RadzioGadzio
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Keywords: exporter,packages,pyinstaller,installer
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: summary

# PyExporter

A package to help building your python apps with [PyInstaller](https://pyinstaller.org/en/stable/index.html)

# Usage

```python
from py_exporter import PyExporter

PyExporter('script.py').run()
```

For options see [PyInstaller usage](https://pyinstaller.org/en/stable/usage.html)

## Mappings

| Variable Name <small>(*Required)</small> | Type                         | Default                                                                                                            | PyInstaller Option                                                                                                            |
|------------------------------------------|--------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|
| *`file`                                  | `str \| Path`                                          |                                                                                                                    | [<code>scriptname</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-arg-scriptname)                              |
| `name`                                   | `str`                                                  | Same as file name                                                                                                  | [<code>name</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-n)                                                 |                                                
| `out_dir`                                | `str \| Path`                                          | _./dist_                                                                                                           | [<code>distpath</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-distpath)                                      |
 | `one_dir`                                | `bool`                                                 | _False_                                                                                                            | [<code>onedir</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-D)                                               |
 | `one_file`                               | `bool`                                                 | _True_                                                                                                             | [<code>onefile</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-F)                                              |
 | `spec_path`                              | `str \| Path`                                          | _./dist_                                                                                                           | [<code>specpath</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-specpath)                                      |
 | `work_path`                              | `str \| Path`                                          | _./build_                                                                                                          | [<code>workpath</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-workpath)                                      |
 | `no_confirm`                             | `bool`                                                 | _True_                                                                                                             | [<code>noconfirm</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-y)                                            |
 | `clean`                                  | `bool`                                                 | _False_                                                                                                            | [<code>clean</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-clean)                                            |
 | `log_level`                              | [<code>LogLevel</code>](#loglevel)                     |                                                                                                                    | [<code>log-level</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-log-level)                                    |
 | `contents_directory`                     | `str \| Path`                                          |                                                                                                                    | [<code>contents-directory</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-contents-directory)                  |
 | `console`                                | `bool`                                                 | _True_                                                                                                             | [<code>console</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-c)                                              |
 | `windowed`                               | `bool`                                                 | _False_                                                                                                            | [<code>windowed</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-w)                                             |
 | `icon`                                   | `str \| Path`                                          |                                                                                                                    | [<code>icon</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-i)                                                 |
 | `hide_console`                           | [<code>HideConsole</code>](#hideconsole)               |                                                                                                                    | [<code>hide-console</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-hide-console)                              |
 | `debug`                                  | [<code>Debug</code>](#debug)                           |                                                                                                                    | [<code>debug</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-d)                                                |
 | `disable_windowed_traceback`             | `bool`                                                 |                                                                                                                    | [<code>disabled_windowed_traceback</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-disable-windowed-traceback) 
| Windows Specific Options                 |                                                        |                                                                                                                    |                                                                                                                               |
| `version_file`                           | `str \| Path`                                          |                                                                                                                    | [<code>version-file</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-version-file)                              |
| `manifest`                               | `str \| Path`                                          |                                                                                                                    | [<code>manifest</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-manifest)                                      |
| `admin`                                  | `bool`                                                 | _False_                                                                                                            | [<code>uac-admin</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-uac-admin)                                    |
| `remote_desktop`                         | `bool`                                                 | _False_                                                                                                            | [<code>uiaccess</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-uac-uiaccess)                                  |
| MacOS Specific Options                   |                                                        |                                                                                                                    |
| `argv_emulation`                         | `bool`                                                 | _False_                                                                                                            | [<code>argv-emulation</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-argv-emulation)                          |
| `osx_bundle_identifier`                  | `str`                                                  || [<code>osx-bundle-identifier</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-osx-bundle-identifier)            |
| `target_architecture`                    | [<code>TargetArchitecture</code>](#targetarchitecture) || [<code>target-architecture</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-target-architecture)                |
| `codesign_identify`                      | `str`                                                  || [<code>codesign-identity</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-codesign-identity)                    |
| `osx_entitlements_file`                  | `str`                                                  ||  [<code>osx-entitlements-file</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-osx-entitlements-file)           |

## Other options

| Function                         | Arguments                                                                             | PyInstaller Option                                                                                                                                                                                                                                           |                                                                                 
|----------------------------------|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `add_data`                       | _source_: `str \| Path`, _destination_: `str \| Path`                                 | [<code>add_data</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-add-data)                                                                                                                                                                     | 
| `add_binary`                     | _source_: `str \| Path`, _destination_: `str \| Path`                                 | [<code>add_binary</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-add-binary)                                                                                                                                                                 | 
| `add_path`                       | _directories_: `list[str \| Path]`                                                    | [<code>paths</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-p)                                                                                                                                                                               | 
| `add_hidden_import`              | _module_names_: `list[str]`                                                           | [<code>hidden-import</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-hidden-import)                                                                                                                                                           | 
| `add_additional_hooks_directory` | _hook_paths_: `list[str \| Path]`                                                     | [<code>additional-hooks-dir</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-additional-hooks-dir)                                                                                                                                             | 
| `add_runtime_hook`               | _runtime_hooks_: `list[str]`                                                          | [<code>runtime-hook</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-runtime-hook)                                                                                                                                                             | 
| `add_exclude_module`             | _excludes_: `list[str]`                                                               | [<code>exclude-module</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-exclude-module)                                                                                                                                                         | 
| `add_copy_metadata`              | _package_names_: `list[str \| tuple[str, bool]]`                                      | if second argument is `False` [<code>copy-metadata</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-copy-metadata) else [<code>recursive-copy-metadata</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-recursive-copy-metadata) | 
| `add_collect`                    | _collect_type_: [<code>CollectType</code>](#collecttype), _module_names_: `list[str]` | Depends on `collect_type`                                                                                                                                                                                                                                    | 
| Windows Specific Options         |                                                                                       |                                                                                                                                                                                                                                                              |
| `add_resource` | _resources_: `list[tuple[str \| PATH, str, str, str \| int]]`                         | [<code>resource</code>](https://pyinstaller.org/en/stable/usage.html#cmdoption-r)

## Enums

### `CollectType`
- [_SUBMODULES_](https://pyinstaller.org/en/stable/usage.html#cmdoption-collect-submodules)
- [_DATA_](https://pyinstaller.org/en/stable/usage.html#cmdoption-collect-data)
- [_BINARIES_](https://pyinstaller.org/en/stable/usage.html#cmdoption-collect-binaries)
- [_ALL_](https://pyinstaller.org/en/stable/usage.html#cmdoption-collect-all)
### `LogLevel`
[- Link -](https://pyinstaller.org/en/stable/usage.html#cmdoption-log-level)
- _TRACE_
- _DEBUG_
- _INFO_
- _WARN_
- _DEPRECATION_
- _ERROR_
- _FATAL_

### `Debug`
[- Link -](https://pyinstaller.org/en/stable/usage.html#cmdoption-d)
- _ALL_
- _IMPORTS_
- _BOOTLOADER_
- _NO_ARCHIVE_

### `HideConsole`
[- Link -](https://pyinstaller.org/en/stable/usage.html#cmdoption-hide-console)
- _HIDE_EARLY_
- _HIDE_LATE_
- _MINIMIZE_EARLY_
- _MINIMIZE_LATE_

### `TargetArchitecture`
[- Link -](https://pyinstaller.org/en/stable/usage.html#cmdoption-target-architecture)
- _x86_64_
- _arm64_
- _universal_
