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.2.8

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.2.8
File Size Uploaded Provenance Actions
pyarmor_cli-9.2.8.tar.gz 781.1 kB Without provenance Details for pyarmor_cli-9.2.8.tar.gz

Built distributions (wheels)

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

Total release size: 3.1 MB

Release files / pyarmor_cli-9.2.8.tar.gz

Download URL pyarmor_cli-9.2.8.tar.gz
Size 781.1 kB
Tags Source
SHA-256 checksum
How to use checksums
86a0d86129037b6a41180f0c7f26c36edbf3fbe29cb4e5dc55306b5e87ac5625
BLAKE2b-256 checksum
How to use checksums
5821ff9e607c1e23247735ee09e2cebc2bc95aa69f2a4275f9285317cfe94fa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.10

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

Download URL pyarmor_cli-9.2.8-py3-none-any.whl
Size 787.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30541c389774c72f04bcec7763f2d210f81992ef79967395c8f8dfe2e4c2e2b6
BLAKE2b-256 checksum
How to use checksums
5d80724c20c833282c509eb036490881a1acb08b22c36d60b0ce0e3bff848c2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.10

Release files / pyarmor_cli-9.2.8-3-py3-none-any.whl

Download URL pyarmor_cli-9.2.8-3-py3-none-any.whl
Size 788.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe1763a4f8a534eba078be1781b0c9d4bf2b67f1e199ef3209ac56f101bd9774
BLAKE2b-256 checksum
How to use checksums
461131dca37d82849a29a40e0012fa96b6bd9ca7a5225ff97e68e3c6524826da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.10

Release files / pyarmor_cli-9.2.8-2-py3-none-any.whl

Download URL pyarmor_cli-9.2.8-2-py3-none-any.whl
Size 787.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17561b2db9d6d981ccca03adfc8710a74a703f3dad31ea311511c89292b18685
BLAKE2b-256 checksum
How to use checksums
9a8d5768460c667ab5222b29159805b8705fe99eb5bca30d7a82f967fc73169c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.10

Security for pyarmor.cli 9.2.8

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.2.8 This release

4 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