pip install pyarmor pyarmor obfuscate --recursive myscript.py
Here is what the above code is Doing:
1. Install the pyarmor package.
2. Obfuscate the myscript.py script recursively.
If you want to obfuscate a directory of Python scripts, use the following command:
pyarmor obfuscate –recursive myscriptdir
If you want to obfuscate a single Python script, use the following command:
pyarmor obfuscate myscript.py