pyexecutable-gen


Namepyexecutable-gen JSON
Version 0.0.3 PyPI version JSON
download
home_pageNone
SummaryA Python wrapper for PyInstaller to programmatically generate an executable from a Python script
upload_time2025-08-07 13:31:39
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseNone
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(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 `.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/2b/1c/d7fcc656588b325f54efe60fea91bfa129ad8b4f1f55d4a0d0e3feffcea6/pyexecutable_gen-0.0.3.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(True)\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\n    print(f\"\u2705 Build executable path is {b.get_executable_path()}\")\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.3",
    "project_urls": {
        "Homepage": "https://github.com/its-me-abi/pyexecutable_gen"
    },
    "split_keywords": [
        "pyinstaller",
        " exe",
        " executable",
        " generate"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "663dced40049e3c5d81f771bf4fbaf147efa7667a61b4373a7d03119cee4a247",
                "md5": "61248e82a3aed38ada44728aed73f472",
                "sha256": "fb4040d40edf226f7b743d0676b83f18f1daef844b60845193a606e899a82fa4"
            },
            "downloads": -1,
            "filename": "pyexecutable_gen-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "61248e82a3aed38ada44728aed73f472",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4736,
            "upload_time": "2025-08-07T13:31:38",
            "upload_time_iso_8601": "2025-08-07T13:31:38.783607Z",
            "url": "https://files.pythonhosted.org/packages/66/3d/ced40049e3c5d81f771bf4fbaf147efa7667a61b4373a7d03119cee4a247/pyexecutable_gen-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2b1cd7fcc656588b325f54efe60fea91bfa129ad8b4f1f55d4a0d0e3feffcea6",
                "md5": "be5a1519dff496cf95b63760f121a248",
                "sha256": "f23bb780bef0ba7d178405f170135529f804f7cd7ac4d806eac71b802e8f4eb1"
            },
            "downloads": -1,
            "filename": "pyexecutable_gen-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "be5a1519dff496cf95b63760f121a248",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4944,
            "upload_time": "2025-08-07T13:31:39",
            "upload_time_iso_8601": "2025-08-07T13:31:39.570380Z",
            "url": "https://files.pythonhosted.org/packages/2b/1c/d7fcc656588b325f54efe60fea91bfa129ad8b4f1f55d4a0d0e3feffcea6/pyexecutable_gen-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-07 13:31:39",
    "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"
}
        
Elapsed time: 3.47375s