Name | pyexecutable-gen JSON |
Version |
0.0.1
JSON |
| download |
home_page | None |
Summary | A Python wrapper for PyInstaller to programmatically generate an executable from a Python script |
upload_time | 2025-07-28 17:21:53 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.6 |
license | None |
keywords |
pyinstaller
exe
executable
generate
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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](https://github.com/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](https://github.com/its-me-abi/pyexecutable/wiki)
## ๐ Installation
```bash
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
```python
from pyexecutable_gen import builder
b = builder("your_script.py")
b.set_console(False)
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!")
else:
print("โ Build failed.")
```
---
## ๐ง Features
- โ
No CLI required
- ๐ Cross-platform data folder support
- ๐ช Hidden import handling
- ๐ผ Set icon with `.ico` file
- ๐งต Toggle between GUI and console mode
- ๐ Control build verbosity via log levels
- ๐งน Optional clean builds
---
## ๐ชช License
MIT License โ See `LICENSE.md` for details.
Raw data
{
"_id": null,
"home_page": null,
"name": "pyexecutable-gen",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "pyinstaller, exe, executable, generate",
"author": null,
"author_email": "keralaboy <keralaboypypi@keralaboy.anonaddy.com>",
"download_url": "https://files.pythonhosted.org/packages/9b/5b/4ef7edd827b9083a5b80f8f7ca3a4eee9303246302dd31ed2c0ba50fde26/pyexecutable_gen-0.0.1.tar.gz",
"platform": null,
"description": "\r\n# pyexecutable_gen\r\n\r\nA lightweight, configurable **PyInstaller wrapper** for Python developers who want to package their scripts into standalone executables using Python code instead of CLI.\r\n \r\n> Author: [its-me-abi](https://github.com/its-me-abi) \r\n> Date: May 14, 2025\r\n\r\n---\r\n\r\n## \ud83d\udce6 What is this?\r\n\r\n`pyexecutable_gen.py` provides a `builder` class to programmatically invoke PyInstaller with custom configurations, \r\nby doing it we can turn a python script into a executable file \r\nsupporting:\r\n\r\n- One-file / one-dir builds\r\n- Hidden imports\r\n- Data folder mapping\r\n- Custom icons and console toggling\r\n- Clean builds and custom PyInstaller flags\r\n\r\n---\r\n## \ud83e\udd1d Documentation\r\n[ full documentation is available in wiki](https://github.com/its-me-abi/pyexecutable/wiki) \r\n## \ud83d\udee0 Installation\r\n\r\n\r\n```bash\r\npip install pyexecutable_gen\r\n```\r\nor download this project by git comand (or download by browser as zip and extract )\r\n```\r\ngit clone https://github.com/its-me-abi/pyexecutable_gen.git\r\n```\r\n\r\n---\r\n\r\n## \ud83d\ude80 Quick Start\r\n\r\n```python\r\nfrom pyexecutable_gen import builder\r\n\r\nb = builder(\"your_script.py\")\r\nb.set_console(False)\r\nb.set_onedir(True)\r\nb.set_icon(\"icon.ico\")\r\nb.set_loglevel(\"DEBUG\")\r\nb.set_data_folders(\"assets\", \"assets\")\r\nb.set_hidden_import(\"your_dynamic_module\")\r\n# b.set_extra_args(\"--heloo its_extra_argument\") # you can set more argumnts as string.only use when functionality not available by api\r\nb.set_collect_all(\"a_big_package_with_submodules\")\r\nif b.build_executable():\r\n print(\"\u2705 Build succeeded!\")\r\nelse:\r\n print(\"\u274c Build failed.\")\r\n\r\n```\r\n\r\n---\r\n\r\n## \ud83d\udd27 Features\r\n\r\n- \u2705 No CLI required\r\n- \ud83d\udcc2 Cross-platform data folder support\r\n- \ud83e\ude84 Hidden import handling\r\n- \ud83d\uddbc Set icon with `.ico` file\r\n- \ud83e\uddf5 Toggle between GUI and console mode\r\n- \ud83d\udd0d Control build verbosity via log levels\r\n- \ud83e\uddf9 Optional clean builds\r\n\r\n\r\n---\r\n\r\n\r\n\r\n## \ud83e\udeaa License\r\n\r\nMIT License \u2013 See `LICENSE.md` for details.\r\n",
"bugtrack_url": null,
"license": null,
"summary": "A Python wrapper for PyInstaller to programmatically generate an executable from a Python script",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/its-me-abi/pyexecutable_gen"
},
"split_keywords": [
"pyinstaller",
" exe",
" executable",
" generate"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "fa96413c86d0676125e3e9149e4aff3aafc2937523513f5ef28be887e8c726a6",
"md5": "38e135437feb8537cab44d9c9d859297",
"sha256": "5d96a0f73b03eaf261f9eb7dcae1530d3cb40cc17af77b895533619b1129a0b6"
},
"downloads": -1,
"filename": "pyexecutable_gen-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "38e135437feb8537cab44d9c9d859297",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 4493,
"upload_time": "2025-07-28T17:21:53",
"upload_time_iso_8601": "2025-07-28T17:21:53.071132Z",
"url": "https://files.pythonhosted.org/packages/fa/96/413c86d0676125e3e9149e4aff3aafc2937523513f5ef28be887e8c726a6/pyexecutable_gen-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "9b5b4ef7edd827b9083a5b80f8f7ca3a4eee9303246302dd31ed2c0ba50fde26",
"md5": "e8982d7efa481e171a0b3cdde40c16f2",
"sha256": "9bfce1d458fbf0783047394decd9c49131f745f9917e0e7ebb85530b84c7233f"
},
"downloads": -1,
"filename": "pyexecutable_gen-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "e8982d7efa481e171a0b3cdde40c16f2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4118,
"upload_time": "2025-07-28T17:21:53",
"upload_time_iso_8601": "2025-07-28T17:21:53.932799Z",
"url": "https://files.pythonhosted.org/packages/9b/5b/4ef7edd827b9083a5b80f8f7ca3a4eee9303246302dd31ed2c0ba50fde26/pyexecutable_gen-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-28 17:21:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "its-me-abi",
"github_project": "pyexecutable_gen",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pyexecutable-gen"
}