pyexecutable_gen
A lightweight, configurable PyInstaller wrapper for Python developers who want to package their scripts into standalone executables using Python code instead of CLI.
Author: its-me-abi
Date: May 14, 2025
📦 What is this?
pyexecutable_gen.py provides a builder class to programmatically invoke PyInstaller with custom configurations,
by doing it we can turn a python script into a executable file
supporting:
- One-file / one-dir builds
- Hidden imports
- Data folder mapping
- Custom icons and console toggling
- Clean builds and custom PyInstaller flags
🤝 Documentation
full documentation is available in wiki
🛠 Installation
pip install pyexecutable_gen
or download this project by git comand (or download by browser as zip and extract )
git clone https://github.com/its-me-abi/pyexecutable_gen.git
🚀 Quick Start
from pyexecutable_gen import builder
b = builder("your_script.py")
b.set_console(True)
b.set_onedir(True)
b.set_icon("icon.ico")
b.set_loglevel("DEBUG")
b.set_data_folders("assets", "assets")
b.set_hidden_import("your_dynamic_module")
# b.set_extra_args("--heloo its_extra_argument") # you can set more argumnts as string.only use when functionality not available by api
b.set_collect_all("a_big_package_with_submodules")
if b.build_executable():
print("✅ Build succeeded!")
print(f"✅ Build executable path is {b.get_executable_path()}")
else:
print("❌ Build failed.")
🔧 Features
- ✅ No CLI required
- 📂 Cross-platform data folder support
- 🪄 Hidden import handling
- 🖼 Set icon with
.icofile - 🧵 Toggle between GUI and console mode
- 🔍 Control build verbosity via log levels
- 🧹 Optional clean builds
🪪 License
MIT License – See LICENSE.md for details.
Metadata
Release files for pyexecutable-gen 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyexecutable_gen-0.0.3.tar.gz | 4.9 kB | Without provenance | Details for pyexecutable_gen-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyexecutable_gen-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for pyexecutable_gen-0.0.3-py3-none-any.whl |
Total release size: 9.7 kB
Release files / pyexecutable_gen-0.0.3.tar.gz
| Download URL | pyexecutable_gen-0.0.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f23bb780bef0ba7d178405f170135529f804f7cd7ac4d806eac71b802e8f4eb1
|
|
BLAKE2b-256 checksum How to use checksums |
2b1cd7fcc656588b325f54efe60fea91bfa129ad8b4f1f55d4a0d0e3feffcea6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / pyexecutable_gen-0.0.3-py3-none-any.whl
| Download URL | pyexecutable_gen-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb4040d40edf226f7b743d0676b83f18f1daef844b60845193a606e899a82fa4
|
|
BLAKE2b-256 checksum How to use checksums |
663dced40049e3c5d81f771bf4fbaf147efa7667a61b4373a7d03119cee4a247
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Security for pyexecutable-gen 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.