Skip to content
/ CEngine Public

This is an open-source converter for python to create exe from py. CEngine create automatically virtualenv and install the packages.

License

Notifications You must be signed in to change notification settings

Da4ndo/CEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release GitHub license GitHub issues PRs Welcome Open Source? Yes!

CEngine

CEngine (Convert Engine)

alt text

This is an open-source converter for python to create exe from py. CEngine creates automatically virtualenv and installs the packages, and deletes unnecessary files after the build is complete.

  • It's using PyInstaller or Nuitka to create exe.
  • It's better because the executable is smaller (less bytes) and,
  • CEngine starts a cleaning proccess and deletes the dist, build, *.spec files/directories after the build is complete.

CHANGELOG

1.0.8 (01/01/2022):

  • Added -b | --windows-defender-bypass option.
  • Solved issues, cleaned code.
  • Code optionalization.

More in changelog.txt

How does it work?

  1. Creates a virtualenv.
  2. Analyzes the target script to get the imports.
  3. Installs the packages with pip.
  4. Starts pyinstaller or nuitka.

alt text Virtualenv create processs and analyze proccess 👆

alt text2 Cleaning process 👆

Usage

usage: cengine.py [-h] [--nuitka] [-s SCRIPT] [-n NAME] [-b] [--add-imports ADD_IMPORTS [ADD_IMPORTS ...]]
                  [--force-platform FORCE_PLATFORM] [--clean]

options:
  -h, --help            show this help message and exit
  --nuitka              Change from pyinstaller to nuitka compiler.
  -s SCRIPT, --script SCRIPT, --file SCRIPT
                        Define a script to be made into an executable.
  -n NAME, --name NAME  Define the script name.
  -b, --windows-defender-bypass
                        Bypass windows defeneder with base64 encode/decode.
  --add-imports ADD_IMPORTS [ADD_IMPORTS ...]
                        Add more imports.
  --force-platform FORCE_PLATFORM
                        Add custom arguments.
  --clean               Clean failed builds.

Convert:

  • cengine --script cengine.py --name cengine --icon NONE --version-file cengine.version
  • cengine --nuitka --script cengine.py --name cengine

Clean:

  • cengine --script cengine.py --clean
  • cengine --nuitka --script cengine.py --clean

About

This is an open-source converter for python to create exe from py. CEngine create automatically virtualenv and install the packages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages