Skip to content

Releases: Da4ndo/CEngine

cengine - 1.2.0

07 Mar 14:55
12723f9

Choose a tag to compare

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

CEngine Logo

CEngine

CEngine (Convert Engine) is a powerful Rust-based tool for converting Python scripts into standalone executables.

Overview

CEngine is an open-source converter that streamlines the process of creating executables from Python scripts. It handles the entire workflow automatically:

  • Creates a virtual environment
  • Analyzes and detects required packages
  • Installs dependencies
  • Builds the executable
  • Cleans up temporary files

Features

  • Smart Import Detection: Automatically scans your Python script to identify required packages
  • Virtual Environment Management: Creates and configures isolated environments for clean builds
  • Dependency Resolution: Handles package installation, including special cases like PyWin32 and OpenCV
  • Build Optimization: Creates optimized executables with minimal size
  • Automatic Cleanup: Removes temporary build files after completion
  • Cross-Platform Support: Works on Windows, macOS, and Linux
  • Debug Mode: Detailed logging for troubleshooting
  • Force Mode: Override warnings and proceed with operations

Installation

From GitHub Releases

Windows

  1. Download the latest Windows executable from the Releases page
  2. Download cengine-windows-x64.exe
  3. Add the executable to your PATH or run it directly

Linux

  1. Download the latest Linux binary from the Releases page
  2. Download cengine-linux-x64
  3. Make it executable:
    chmod +x cengine-linux-x64
  4. Move it to a directory in your PATH:
    sudo mv cengine-linux-x64 /usr/local/bin/cengine

Arch Linux (AUR)

For Arch Linux users, CEngine is available in the AUR:

Using yay

yay -S cengine

Using paru

paru -S cengine

Manual installation from AUR

git clone https://aur.archlinux.org/cengine.git
cd cengine
makepkg -si

Usage

CEngine (Convert Engine) is an open-source converter for Python to create exe from py files.

Usage: cengine <SCRIPT> [OPTIONS] [PYINSTALLER_ARGUMENTS]

Arguments:
  [SCRIPT]  Define a script to be made into an executable

Options:
  -n, --name <NAME>                Define the script name
      --add-imports <IMPORTS>...   Add more imports
      --force-platform <PLATFORM>  Add custom arguments
      --clean                      Clean failed builds
      --debug                      Sets the debug environment to true
      --force                      Forces the operation to proceed with all warnings and skippings
  -h, --help                       Print help
  -V, --version                    Print version

Basic Usage

cengine test.py
With name:
cengine test.py --name test
With custom arguments:
cengine test.py --force-platform linux --add-imports numpy
Clean failed build:
cengine test.py --name test --clean

CEngine 1.0.8 Release

01 Jan 16:48

Choose a tag to compare

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 windwos 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

CEngine 1.0.7 Release

31 Dec 14:08

Choose a tag to compare

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.7 (12/31/2021):

  • Added Nuitka compiler support.
  • Added --nuitka option.
  • Added --force-platform option.
  • Added --clean option.
  • Changed custom args method. Now, just pass the argument. (cengine --script .... --icon NONE --version-file "asd")

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] [--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.
  --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

CEngine 1.0.6 Open-Source Release

25 Dec 17:30

Choose a tag to compare

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 create automatically virtualenv and install the packages.

  • It's using pyinstaller 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/directory when the converting is ended.

CHANGELOG

1.0.6 (12/25/2021):

  • Changed to open-source

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.

alt text
Virtualenv create processs and analyze proccess 👆

alt text2
Cleaning process 👆

Usage

usage: cengine.exe [-h] [--script SCRIPT] [--name NAME] [--custom-args CUSTOM_ARGS]
                   [--add-imports ADD_IMPORTS [ADD_IMPORTS ...]]

options:
  -h, --help            show this help message and exit
  --script SCRIPT, --file SCRIPT
                        Define a script to be made into an executable
  --name NAME           Define the script name.
  --custom-args CUSTOM_ARGS
                        Add custom arguments.
  --add-imports ADD_IMPORTS [ADD_IMPORTS ...]
                        Add more imports.

CEngine 1.0.5 Release

20 Nov 23:09

Choose a tag to compare

CEngine 1.0.5

CEngine (Convert Engine)

This is a converter for python to create exe from py. CEngine create automatically virtualenv and install the packages. It's using pyinstaller to create exe. It's better beaceuse the file is smaller and only the exe appear in the same directory as the target script.

CHANGELOG

1.0.5 (11/20/2021):

  • Added --add-imports parameter

CEngine 1.0.4 Release

27 Sep 17:42

Choose a tag to compare

CEngine 1.0.4

CEngine (Convert Engine)

This is a converter for python to create exe from py. CEngine create automatically virtualenv and install the packages. It's using pyinstaller to create exe. It's better beaceuse the file is smaller and only the exe appear in the same directory as the target script.

CHANGELOG

1.0.4 (10/24/2021):

  • Added handling for --onedir parameter in --custom-args