pex.exe.dylib
¶
Module Contents¶
- class pex.exe.dylib.Dylib¶
Bases:
object
Subclass of pex.exe module.
This subclass of pex.exe module is intended for providing an implementation of macOS dynamic library generator.
- check_dylib(data: bytes) bool ¶
Check if data is a macOS dynamic library.
- Parameters:
data (bytes) – data to check
- Return bool:
True if data is a macOS dynamic library
- pack_dylib(arch: pex.arch.types.Arch | str, data: bytes) bytes ¶
Pack data to a macOS dynamic library.
- Parameters:
arch (Union[Arch, str]) – architecture to pack for
data (bytes) – data to pack
- Return bytes:
packed macOS dynamic library
- Raises:
RuntimeError – with trailing error message