混淆专有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".
请注意,exclude
和 remove
列表执行不同的功能
- 排除功能按文件级别工作,用于需要包含在包中但不应混淆的文件。
- 删除功能用于不应包含在最终构建中的文件和目录。例如,这对于虚拟环境目录或构建目录本身很有用。它还提高了性能,因为文件根本不会被复制到构建目录中。
要执行混淆,请对项目目录运行混淆器。
localstack-obfuscator .
项目详情
关闭
localstack_obfuscator-0.3.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 3fd5737bdd528990e53a7541d32551ae317c65e3304be22a0cffaec48959b4a1 |
|
MD5 | 42c48372f11357b3fa4e4b1a0371fd3a |
|
BLAKE2b-256 | d7540a647ae68d94e54308b7cf429bd082edee805a431a679a0cd376384cf766 |