Usage
Install from Source
uv sync --group dev --group training
uv run maturin develop --features python
CLI Basics
# Dry run by default
pe-packer pack input.exe out.exe
# Actual packing requires BOTH env+flag
PE_PACKER_ALLOW_PACKING=1 pe-packer pack input.exe out.exe --force
# Generate training data (analysis-focused pipeline)
pe-packer generate-training-data ./benign_samples ./training_data --variants 10
# Analyze generated dataset
pe-packer analyze-dataset ./training_data/dataset_metadata.json
# Validate a PE file
pe-packer validate sample.exe
Makefile Shortcuts
# Build stub wheel (safe)
make stub-build
# Publish stub (guarded)
export ALLOW_PYPI_RELEASE=1
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=<your-token>
make stub-publish