Idea: uvfile (`uv` + embedded Python script, similar to llamafile)
Author: phirschCreated Apr 12, 2025Updated Jul 20, 2026
Feel free to close if too wild/off-topic.
I was wondering whether there would be a place for something similar to llamafile (i.e. bundling an APE executable along with data), but applied to uv.
This would allow to distribute stand-alone python scripts as single-file multi-platform executables.
Since uv already accepts self-describing Python files including PEP-723 metadata headers to specify dependencies, and it is a standalone static binary, it looks like an ideal basis for this kind of tool (which I haven't seen implemented anywhere yet).
Any thoughts?
Source: jart/cosmopolitan