Pyarmor is a command-line tool designed for obfuscating Python scripts, binding obfuscated scripts to specific machines, and setting expiration dates for obfuscated scripts.
.py
files, allowing them to seamlessly replace the original Python scripts in most cases.For more information, check out the Pyarmor Environments.
pip install pyarmor
foo.py
script:pyarmor gen foo.py
This command generates an obfuscated script like this at dist/foo.py
:
from pyarmor_runtime import __pyarmor__
__pyarmor__(__name__, __file__, b'x28x83x20x58....')
python dist/foo.py
For more information, check out the getting started tutorial.
Pyarmor is published as shareware. The free trial version never expires, but has some limitations.
Refer to Pyarmor licenses for information on license types, features, limitations, and purchasing a Pyarmor license.
Please read the Pyarmor EULA.
There are also some third-party learn platforms (not Pyarmor offical)
中文资源
Each major version comes with a separate changelog file, detailing fixed issues, new features, and compatibility issues between different versions.
Make sure to read the changelog carefully before upgrading Pyarmor:
Full changelogs at releases
Upcoming features at Pyarmor Release Plan
Some features may be exclusive to Python 3. ↩
Some features may be exclusive to specific architectures. ↩