Skip to main content

A command line tool used to import or run encrypted python scripts.

Project description


Pyarmor is a command line tool used to import or run obfuscated python
scripts. Only by a few extra files, pyarmor can run and imported
obfuscated files in the normal python environments.

Pyarmor just likes an enhancement which let python could run or import
obfuscated files.

Main Features

- Run obfuscated script or import obfuscated module
- Expire obfuscated files
- Bind obfuscated files to harddisk, mac address, ip address etc.

Support Platforms

- Python 2.5, 2.6, 2.7 and Python3

- Prebuilt Platform: win32, win_amd64, linux_i386, linux_x86_64, darwin_x86_64

- Embeded Platform: Raspberry Pi, Banana Pi, ts-4600


Got source package from `pypi/pyarmor <>`_

Pyarmor is a command line tool, main script is After you
got source package, unpack it to any path, then run as
common python script


Basic Usage

The following examples show how to obfuscate a python package
**pybench**, which locates in the **examples/pybench** in the source
of pyarmor.

Obfuscate package **pybench**

python obfuscate --src examples/pybench --entry \
"*.py" "package/*.py"

# Note that quotation mark is required for file patterns, otherwise
# it will be expanded base on current path by shell.
# This command will create a extra file in the
# --src path, and save all the obfuscated scripts to default output
# path "dist" in the current path
cd dist

# Check obfuscated script

# Run obfuscated script

Use project to manage obfuscated scripts:

mkdir projects
python init --src examples/pybench --entry \

# This command will create 2 files: .pyarmor_config,
# in the project path "projects/pybench"
cd projects/pybench

# And there is a shell script "pyarmor" is created at the same time.
# (In windows, the name is "pyarmor.bat")
# Now run "pyarmor" to obfuscated all the scripts by subcommand "build"
./pyarmor build

# Check obfuscated script
cd dist

# Run obfuscated script

See for more usage.

For more information, refer to `Pyarmor Homepage <>`_

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date (1.1 MB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page