Obfuscate with license outside
pyarmor obfuscate --with-license outer in_file.py
Create a license
pyarmor licenses --expired 2021-01-01 r001
Execution of the script outside
# -*- coding: utf-8 -*-
import io
with io.open("in_file.py", 'r', encoding='utf8') as f:
text = f.read()
exec(text)
Don't Obfuscate envs
pyarmor pack -x " --exclude envs" loaders.py