Skip to main content

Protect Python Scripts By Pyarmor

Pyarmor is a command line tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.

Key Features

  • The obfuscated script is still a normal .py script, in most of cases the original python scripts can be replaced with obfuscated scripts seamlessly.

  • Provide many ways to obfuscate the scripts to balance security and performance

  • Rename functions/methods/classes/variables/arguments, irreversible obfuscation

  • Convert part of Python functions to C function, compile to binary by high optimize option, irreversible obfuscation

  • Bind obfuscated scripts to fixed machine or expire obfuscted scripts

  • Protect obfuscated scripts by Themida (Only for Windows)

Support Platforms

  • Python 3.7~3.15

  • Windows

  • Many linuxs, include embedded systems

  • Apple Intel and Apple Silicon

Quick Start

Install:

pip install pyarmor

Obfuscate the script foo.py:

pyarmor gen foo.py

This command generates an obfuscated script dist/foo.py like this:

from pyarmor_runtime import __pyarmor__
__pyarmor__(__name__, __file__, b'\x28\x83\x20\x58....')

Run it:

python dist/foo.py

More Resources

Metadata

Release files for pyarmor.cli 9.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyarmor.cli 9.3.1
File Size Uploaded Provenance Actions
pyarmor_cli-9.3.1.tar.gz 786.3 kB Without provenance Details for pyarmor_cli-9.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyarmor.cli 9.3.1
File Interpreter ABI Platform Actions
pyarmor_cli-9.3.1-py3-none-any.whl Python 3 none any Details for pyarmor_cli-9.3.1-py3-none-any.whl

Total release size: 1.6 MB

Release files / pyarmor_cli-9.3.1.tar.gz

Download URL pyarmor_cli-9.3.1.tar.gz
Size 786.3 kB
Tags Source
SHA-256 checksum
How to use checksums
18530f9b418b8cfe334b08d224d755fae7ad81804af19fc1d00d8e0d815863b4
BLAKE2b-256 checksum
How to use checksums
35c2a5b23763195f5066560abb864126be65e3f9776624440bc10446a1fd517f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.10

Release files / pyarmor_cli-9.3.1-py3-none-any.whl

Download URL pyarmor_cli-9.3.1-py3-none-any.whl
Size 793.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb9a8240125ca1ca290fd232f1cdf9a8f3c5d27d2d203bc4324776ceb2df5e7e
BLAKE2b-256 checksum
How to use checksums
0d188332bfe16864c347f1727ad0ac8ceec4f08673d76be6362b7e6dfd2847af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.10

Security for pyarmor.cli 9.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

9.3.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page