Module Contents

class pex.exe.macho.Macho

Bases: object

Subclass of pex.exe module.

This subclass of pex.exe module is intended for providing an implementation of macOS macho generator.

check_macho(data: bytes) bool

Check if data is a macOS macho.


data (bytes) – data to check

Return bool:

True if data is a macOS macho

pack_macho(arch: pex.arch.types.Arch | str, data: bytes) bytes

Pack data to a macOS macho.

  • arch (Union[Arch, str]) – architecture to pack for

  • data (bytes) – data to pack

Return bytes:

packed macOS macho


RuntimeError – with trailing error message