Pyarmor is a tool used to import or run encrypted python scripts.

Main Features

  • Run encrypted script or import encrypted module
  • Run or import encrypted compiled python files (.pyc, .pyo)
  • Mixed encrypted files with normal python files.
  • Expire encrypted files
  • Bind encrypted files to harddisk

Support Platforms

  • Python 2.5, 2.6, 2.7 and Python3

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

Quick Start

  • Download

  • Extract it to any path, for example, /opt

  • Enter /opt/pyarmor/webapp, double click start-server.bat (For Windows) or (For Linux)

  • A webpage will open in web browser at the same time, do the following steps in this web page:

    • Click tab Project
    • Type absolute path of python source files in Base Path, for example, /opt/pyarmor/src/examples
    • Type Startup Script
    • Type Build Path, for example, /opt/pyarmor/webapp/build
    • Click button Encrypt
    • All the encrypted files would be save in /opt/pyarmor/build, enter this path
  • Run encrypted script with command: python


Pyarmor is published as shareware. Free trial version that never expires, the limitation is

  • Project Capsule generated by trial version is NOT random, but FIXED by hardcode.

A registration code is required to generate random project capsule.

  • Personal user: one registration code is enough.
  • Company user: one registration code is only used for one project/product.
Project Infromation

Required. Absolute path in local machine used by to search files.

Optional. Following the Distutils’ own manifest template, all these files will be encrypted.


Optional. If not blank, encrypted scripts will be saved here, otherwise Base Path

How to generate encrypted scripts

Leave it blank if it's same with current platform.

Click tab Licenses to generate available project licenses

Generate project license for special user

Any string, for example, 'mycustomer-01'. Note that it will be IGNORED if any of checkbox above is checked.


You're using trail version. Free trial version that never expires, but project capsule generated is fixed by hardcode, so all the encrypted files are encrypted by same key.

A registration code is required to generate random project capsule. If Pyarmor is helpful for you, please purchase one by visiting

After you have received a registration code, just replace the content of "license.lic" with registration code only (no newline).

The registration code is valid forever, it can be used permanently.

Enjoy it!