Pyarmor CLI Core

8.1.1 · active · verified Sun Apr 12

Pyarmor-cli-core is the foundational library for Pyarmor, providing the platform-specific extension modules (like `pytransform3`) necessary for obfuscating Python scripts and executing obfuscated code. It serves primarily as a dependency for the main `pyarmor` CLI tool. As of its latest PyPI release, the current version is 8.1.1. Releases for `pyarmor-cli-core` are tightly coupled with `pyarmor` releases, offering updated binaries for new Python versions and features.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to verify that the `pytransform3` module, provided by `pyarmor-cli-core`, is correctly installed and accessible. It checks the module's version, confirming its presence in your Python environment.

import pytransform3

try:
    # Verify the pytransform3 module is loaded and get its version
    runtime_version = pytransform3.pyarmor_version()
    print(f"Pytransform3 module loaded successfully. Version: {'.'.join(map(str, runtime_version))}")

    # Note: pyarmor-cli-core itself does not expose obfuscation functions directly.
    # It provides the runtime environment and core binaries used by the 'pyarmor' tool.
    # To obfuscate scripts, you typically use the 'pyarmor' package/CLI:
    # (Requires: pip install pyarmor)
    # from pyarmor import pyarmor_build
    # pyarmor_build.obfuscate('your_script.py')

except ImportError:
    print("Error: pytransform3 module not found. Is pyarmor-cli-core installed correctly?")
except Exception as e:
    print(f"An unexpected error occurred: {e}")

view raw JSON →