Skip to content

Waxxx333/Py2Marshal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Py2Marshal Python | Marshal Python3 Python3 Bash

Py2Marshal

Compile Python code into Marshal from Termux, Windows or Linux.


Tested with Termux, Linux and Windows. Installer only works with Termux and Linux as of right now because, well, Windblows.

Features bash completion script if you have bash-completion installed.

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.
*Now has tab suggestions at input prompts*
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
To run:
git clone https://github.com/Waxxx333/Py2Marshal
cd Py2Marshal
chmod +x py2marshal.py
./py2marshal.py -h

Example

./py2marshal.py -i script_to_encode.py -o new_marshal_script.py
To install:
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


Releases

No releases published

Packages

No packages published