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 (*Required) Type Default PyInstaller Option
*file str | Path scriptname
name str Same as file name name
out_dir str | Path ./dist distpath
one_dir bool False onedir
one_file bool True onefile
spec_path str | Path ./dist specpath
work_path str | Path ./build workpath
no_confirm bool True noconfirm
clean bool False clean
log_level LogLevel log-level
contents_directory str | Path contents-directory
console bool True console
windowed bool False windowed
icon str | Path icon
hide_console HideConsole hide-console
debug Debug debug
disable_windowed_traceback bool disabled_windowed_traceback
Windows Specific Options
version_file str | Path version-file
manifest str | Path manifest
admin bool False uac-admin
remote_desktop bool False uiaccess
MacOS Specific Options
argv_emulation bool False argv-emulation
osx_bundle_identifier str osx-bundle-identifier
target_architecture TargetArchitecture target-architecture
codesign_identify str codesign-identity
osx_entitlements_file str 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

- Link -

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

Debug

- Link -

  • ALL
  • IMPORTS
  • BOOTLOADER
  • NO_ARCHIVE

HideConsole

- Link -

  • HIDE_EARLY
  • HIDE_LATE
  • MINIMIZE_EARLY
  • MINIMIZE_LATE

TargetArchitecture

- Link -

  • 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.4.tar.gz (10.2 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.4-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_package_exporter-0.0.4.tar.gz
  • Upload date:
  • Size: 10.2 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.4.tar.gz
Algorithm Hash digest
SHA256 2613207fca579a78369782812c1ff5b19b7cbc3098c3beec92bef1904bb0ef45
MD5 f444ec66fa11956e5d6c63120185671c
BLAKE2b-256 df77a900bc3091d562d456bbb4250bda176373a8e2e55596d9f27eb4236fad76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_package_exporter-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5fb8ff29c6c29c9fedb3e7cb8388bfd5382b20c15a43b678925f73585935f8a9
MD5 ff3be5668b0f06d36d796ba492fe3388
BLAKE2b-256 2df30d7b744248c3048ce0285baf948c0b5b8943949839e29a5536b1a938d892

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