pex - python executables
PEX files are self-contained executable Python virtual environments. More specifically, they are carefully constructed zip files with a
#!/usr/bin/env pythonand special
__main__.pythat 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