Skip to main content

A package to help building your python apps with PyInstaller

Project description

PyExporter

A package to help building your python apps with PyInstaller

Usage

from py_exporter import PyExporter

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

For options see PyInstaller usage

Mappings

Variable Name PyInstaller Option
file scriptname
name name
out_dir distpath
one_dir onedir
one_file onefile
spec_path specpath
work_path workpath
no_confirm noconfirm
clean clean
log_level log-level
contents_directory contents-directory
console console
windowed windowed
icon icon
hide_console hide-console
debug debug
disable_windowed_traceback disabled_windowed_traceback
Windows Specific Options
version_file version-file
manifest manifest
admin uac-admin
remote_desktop uiaccess
MacOS Specific Options
argv_emulation argv-emulation
osx_bundle_identifier osx-bundle-identifier
target_architecture target-architecture
codesign_identify codesign-identity
osx_entitlements_file osx-entitlements-file

Other options

Function Arguments PyInstaller Option
add_data source: str | Path, destination: str | Path add_data
add_binary source: str | Path, destination: str | Path add_binary
add_path directories: list[str | Path] paths
add_hidden_import module_names: list[str] hidden-import
add_additional_hooks_directory hook_paths: list[str | Path] additional-hooks-dir
add_runtime_hook runtime_hooks: list[str] runtime-hook
add_exclude_module excludes: list[str] exclude-module
add_copy_metadata package_names: list[str | tuple[str, bool]] if second argument is False copy-metadata else recursive-copy-metadata
add_collect collect_type: CollectType, module_names: list[str] Depends on collect_type
Windows Specific Options
add_resource resources: list[tuple[str | PATH, str, str, str | int]] resource

Enums

CollectType

LogLevel

  • TRACE
  • DEBUG
  • INFO
  • WARN
  • DEPRECATION
  • ERROR
  • FATAL

Debug

  • ALL
  • IMPORTS
  • BOOTLOADER
  • NO_ARCHIVE

HideConsole

  • HIDE_EARLY
  • HIDE_LATE
  • MINIMIZE_EARLY
  • MINIMIZE_LATE

TargetArchitecture

  • x86_64
  • arm64
  • universal

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

py_package_exporter-0.0.2.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

py_package_exporter-0.0.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file py_package_exporter-0.0.2.tar.gz.

File metadata

  • Download URL: py_package_exporter-0.0.2.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for py_package_exporter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3af6e3a5a97790bc9a7c11906746aa236923b218732bf47369776749516435b2
MD5 c9535a9a727b8d657a02ef9cede52be8
BLAKE2b-256 c1d250333e85feb9bcb2e44772bacb0fc73c18c0981fe2e660e1feca0b50490a

See more details on using hashes here.

File details

Details for the file py_package_exporter-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for py_package_exporter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 af9787e9e3d7e2086edc09fc543b6b4ef8e395a6d656f4147f8583cd7dcc9c1f
MD5 dab18ae2758498f2cec9fe06357c4ae3
BLAKE2b-256 11be4e43f540af65a2ffa424a7b89b6d3a6447b0221d4e50bf49d6af7fd6a09a

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