跳转到主要内容

混淆专有LocalStack代码库

项目描述

混淆器

用于混淆Python代码的工具

安装

pip install localstack-obfuscator

用法

您需要在要混淆的项目中有一个配置文件。

以下是一个示例配置文件

custom_patches: false # if true, will use custom patches for dataclasses. Default is false.

# custom parameters for python_minifier
minify:
  remove_literal_statements: true

# list of files to exclude from obfuscation
exclude:
  - "constants.py"
  - "routes.py"

# list of files to remove from resulting build
remove:
  - ".venv"
  - "build"

target_dir: "outages" # relative to the build directory. The default is the same as current dir name
build_dir: "build" # relative to the current dir. The default is "build".

请注意,excluderemove 列表执行不同的功能

  • 排除功能按文件级别工作,用于需要包含在包中但不应混淆的文件。
  • 删除功能用于不应包含在最终构建中的文件和目录。例如,这对于虚拟环境目录或构建目录本身很有用。它还提高了性能,因为文件根本不会被复制到构建目录中。

要执行混淆,请对项目目录运行混淆器。

localstack-obfuscator .

项目详情


下载文件

下载您平台上的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

localstack_obfuscator-0.3.0.tar.gz (4.4 kB 查看哈希值)

上传时间

由以下支持