pyinstaller is a tool to compile your python programs into “native code”. How secure is it actually? Spoiler: It’s not.
When pyinstaller bundles your app - it compiles all your python code to bytecode, and compresses it. Then, it embeds that compressed version within the program you distribute.
Someone can easily run a tool to extract that archive, and then run a tool like uncompyle6 to de-compile the python bytecode (.pyc) files back into almost original state.
You’ll know you’re likely dealing with pyinstaller, if your binary has lots of symbols that start with _pyi_, or the entrypoint calls _pyi_main().
https://github.com/extremecoders-re/pyinstxtractor
https://github.com/rocky/python-uncompyle6
Obviously - only do this for programs you’re legally allowed to decompile.