Make runnable apps from your python scripts!
Project description
py2winapp
Make runnable apps from your python scripts!
Description
How it works
This script performs the following actions:
- Copies your source files to the build folder
- Downloads Python interpreter to the build folder
- Installs
pip - Installs your project's requirements
- Makes an executable startup file wich runs your main script
You'll get a portable Windows application!
Requirements and limitations
- Python 3.9+
- Tested on Windows 10 only
- Now only
x64architecture is supported.
Installation
With pip:
pip install py2winapp
With poetry:
poetry add --group build py2winapp
Usage
In project's root create build.py:
# build.py
import py2winapp
def make_build():
py2winapp.build(
python_version="3.11.3",
input_source_dir="directory-where-your-source-files-are",
main_file="main.py", # your app's entry point
show_console=True, # or False if your app is GUI only
)
if __name__ == '__main__':
make_build()
Run command:
python build.py
You can find build and distribution in build and dist folders now.
Poetry
Add to pyproject.toml:
[tool.poetry.scripts]
build = "build:make_build"
Now you can run building with:
poetry run build
See documentation for more.
License
MIT
Credits
- inspired by ClimenteA/pyvan
- used code from silvandeleemput/gen-exe
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py2winapp-0.1.0.tar.gz.
File metadata
- Download URL: py2winapp-0.1.0.tar.gz
- Upload date:
- Size: 77.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d911575b2ccfdee6a08604920e6ed15ad56a2357581f8f238ac921c5753a9d2
|
|
| MD5 |
addf2dd11b6c0f76dbaac4b34c6a34b1
|
|
| BLAKE2b-256 |
91e1f1bb0fe5d0c211000b7abf36cceddd6a33dcdff4080a0c24feb55aef4ca5
|
File details
Details for the file py2winapp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: py2winapp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 77.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d84cf8ed4e0b649c351f293ba6aa9b4a4efda5ea892e9e9e7b9d5e2633571dd6
|
|
| MD5 |
91da17148298ac66191a256e96d7705f
|
|
| BLAKE2b-256 |
cde3cb8fb9027179727590d624d6545879f85ea090d8c9d45ed39394ab4f74c3
|