pex - python executables

Oct 20, 2023

PEX files are self-contained executable Python virtual environments. More specifically, they are carefully constructed zip files with a #!/usr/bin/env python and special that allows you to interact with the PEX runtime. For more information about zip applications, see PEP 441.

via this article, where the author uses them to bundle and deploy python applications into docker images for distribution

↑ up