Tested with Termux, Linux and Windows. Installer only works with Termux and Linux as of right now because, well, Windblows.
Or, just simply run py2marshal.py
and you'll be prompted to enter the input and output names of the script you're trying to compile.
Uses all standard libraries execept in Windows. The script uses the library readline
which comes standard in Termux/Linux when you install Python but it does not come standard in Windows when you install Python. The script will attempt to download pip, and will attempt to install the Windows equivalent: pyreadline
.
- When you're using it in interactive mode(not using the --input and --output flags) when at an input prompt, press tab and it will give you suggestions of files in the same working directory you're in.
Feature | Termux | Linux | Windows | WSL |
---|---|---|---|---|
Compiles to Marshal | ✓ | ✓ | ✓ | ✓ |
Has installer | ✓ | ✓ | ✓ | |
Has suggestion in-script | ✓ | ✓ | ✓ | ✓ |
Has bash-completion | ✓ | ✓ | ✓ |
git clone https://github.com/Waxxx333/Py2Marshal
cd Py2Marshal
chmod +x py2marshal.py
./py2marshal.py -h
./py2marshal.py -i script_to_encode.py -o new_marshal_script.py
git clone https://github.com/Waxxx333/Py2Marshal
cd Py2Marshal
chmod +x install.sh
sudo ./install.sh
py2marshal -h
Todos
- Make
install.sh
work with Winblows- Include
pip
- Create
install.sh
- Include