Skip to content

Idea: uvfile (uv + embedded Python script, similar to llamafile) #1396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
phirsch opened this issue Apr 12, 2025 · 1 comment
Open

Idea: uvfile (uv + embedded Python script, similar to llamafile) #1396

phirsch opened this issue Apr 12, 2025 · 1 comment

Comments

@phirsch
Copy link

phirsch commented Apr 12, 2025

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?

@jart
Copy link
Owner

jart commented Apr 15, 2025

You can download Python as an APE binary from here: https://cosmo.zip/pub/cosmos/bin/

Doing something with uv is currently blocked on cosmo+rust support. https://ahgamut.github.io/2022/07/27/ape-rust-example/ We've had limited success with it in the past. But I predict it'll finally happen by the end of the year. So keep following the project and we'll be able to take care of you soon enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants