A GitHub Repository where I store any Python Utilities I make.
A Text User Interface Based File Explorer.
TUI Explorer allows one to access their operating's system file system via a shell.
Go <Folder> # Go to specified folder.
Back # Go one folder up.
Run <Arguments> # Run a program/shell command.
Exit # Exit TUI Explorer.
This is a simple Python script which allows you to run a full python installation but as a small package.
You can also import custom modules installed via pip and include them in your LPE.
#------------
import module1
import module2
#-------------
import sys
import runpy
import code
# Flags
ArgsSupport=False
Arguments=sys.argv[2:len(sys.argv)]
Args={}
for Index in range(len(Arguments)):
Args[Index]=Arguments[Index]
if len(sys.argv) == 1:
code.InteractiveConsole().interact(banner=
"Lightweight Python Environment\n",
exitmsg="")
elif len(sys.argv) == 2:
runpy.run_path(sys.argv[1])
else:
if ArgsSupport is True:
print("Warning: 'sys.argv' & 'argparse' might likely not work correctly.\n")
runpy.run_path(sys.argv[1], Args) - Install Python
3.10. - Run:
pip install nuitka
pip install zstandard- Run
build.bat
Note: Your compiled LPE will include the Python installation present on your device.
