pex - python executables
Mar 07, 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__main__.py
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