top | item 45412472

PyOCI – Publish and install private Python packages using OCI/Docker registries

29 points| robinhoodexe | 5 months ago |github.com

13 comments

order

yjftsjthsd-h|5 months ago

Would be nice to see at least a high-level overview of how it works under the hood. Is it doing anything interesting with reusable layers? Actually, thinking further that might be a moot point; I feel like running as a remote proxy loses some fun optimization chances. I could imagine a world where you install a package from the host's pip/uv, and then add it to a container image, and both of those are actually the same thing on disk. (Granted, that's likely harder to implement)

allexv|4 months ago

Hi, I included a few details here: https://github.com/AllexVeldman/pyoci/blob/main/docs/design.... which I recognise does not contain much.

It's basically a single layer image with a multi-platform image index per tag(version) on top.

No smarts added, performance wise it's probably worse than running your own dedicated pypi index or any purpose-built system, my main goal is a private index for if you don't have access to one already.

allexv|4 months ago

Thank you for posting my project here! Only noticed it just now due to the uptick in starts on github :)

globular-toast|5 months ago

Or you could use GitLab which has support for Python packages without a proxy.

tuananh|5 months ago

can we agree to use OCI for everything :D

deknos|5 months ago

as long as we can convert the OCI to an bootable VM image, i am fine with that. But i also think, there's an size limit