Skip to content

A program that turns Python scripts (.py) into standalone applications (.exe) - without the need to install Python on other computers. Requires downloading and unpacking WinPython (a free portable Python distribution from https://winpython.github.io/)

Notifications You must be signed in to change notification settings

MrEon50/winpythonec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐍 WinPython EXE Compiler (EC):

What is it? A program that turns Python scripts (.py) into standalone applications (.exe) - without the need to install Python on other computers.

Who needs it? 🎯 Problem: You wrote a Python program, but you want to give it to someone who doesn't have Python installed βœ… Solution: This program creates an .exe file that runs on any Windows without any additional installations

How does it work?

  1. You provide: the path to WinPython + your .py script
  2. The program does: automatically compiles to .exe + packs in ZIP
  3. You get: a ready-to-share application

Usage example:

You have: "my_game.py" (requires Python)
↓
The program creates: "my_game.exe" (works everywhere)
↓
You send it to a friend: it simply runs the .exe

Main advantages:

  • πŸš€ One click - everything automatic
  • πŸ“¦ One file - the entire application in one .exe
  • πŸ”’ Safe - does not damage the system Python
  • πŸ“ Ready to send - automatically packs in ZIP

For whom?

  • Python programmers who want to share their programs
  • People who create tools for companies/friends
  • Anyone who wants to "professionally" distribute Python code

Analogy: It's like a "baker for bread" - you throw in the ingredients (Python code) and get a finished product (.exe application) to sell/give away! 🍞➑️πŸ₯–

In short: It turns Python code into Windows applications that run without having Python installed! 🎯

How to use:

  1. Interactive mode (recommended for beginners): python winpython_ec.py
  2. Command line mode: python winpython_ec.py -w "C:\WinPython\WPy64-310111" -s "my_script.py"
  3. With additional libraries: python winpython_ec.py -w "C:\WinPython\WPy64-310111" -s "app.py" -l requests numpy pandas
  4. Without creating a ZIP archive: python winpython_ec.py -w "C:\WinPython\WPy64-310111" -s "app.py" --no-zip
  5. Using the same program (meta-compilation!): python winpython_ec.py -w "C:\WinPython\WPy64-310111" -s "winpython_ec.py"
  6. Help: python winpython_ec.py --help

Program features: βœ… Menu with description of operation βœ… Automatic detection of WinPython environment βœ… Installation of PyInstaller if needed βœ… Compilation in --onefile mode βœ… Support for additional libraries βœ… Creation of ZIP archive βœ… Error handling with readable messages βœ… Interactive and CLI mode βœ… Automatic cleaning of temporary files βœ… Does not modify system Python

Note: WinPythonEC requires downloading and unpacking WinPython (free portable Python distribution from https://winpython.github.io/) to any folder on your disk. The program will automatically detect the WinPython environment and install missing tools (like PyInstaller) without modifying the system Python.

Why WinPythonEC was created: Python's absurdity: βœ… The world's most popular language βœ… A gigantic ecosystem of libraries βœ… AI, ML, data science, web development βœ… Millions of programmers ❌ Can't make a simple .exe

It's like: πŸš— A Ferrari that has no wheels 🏠 A palace without a front door πŸ“± An iPhone that doesn't ring Why did it happen: Python developed organically without a central plan:

Everyone added what they wanted Nobody thought about the whole thing "It will work somehow" mentality No leader who would say "STOP, let's fix the distribution" Effect: We have a monster language that:

Does artificial intelligence βœ… Analyzes Big Data βœ… Controls SpaceX rockets βœ… Can't make a calculator.exe ❌ This is programming absurdity! 🀑

Why did it happen: Python was created as a scripting language (1991) For automation, system scripts Nobody thought about distributing applications "Install Python and run .py" Success in the wrong fields: Servers β†’ no exe needed Data Science β†’ Jupyter notebooks AI/ML β†’ running in the cloud Web β†’ Django/Flask on a server Desktop GUI? β†’ "Why?" Other languages ​​learn from mistakes: Go β†’ "one binary file" from the beginning Rust β†’ "zero-cost abstractions" + native compilation C# β†’ evolution to .NET 5+ with single-file deployment The sad truth: Python is GREAT for everything... EXCEPT what the average user wants - a simple application that can be run.

Irony: A language that is supposed to solve all problems...cannot solve the basic problem of distribution.

About

A program that turns Python scripts (.py) into standalone applications (.exe) - without the need to install Python on other computers. Requires downloading and unpacking WinPython (a free portable Python distribution from https://winpython.github.io/)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages