oras-py icon indicating copy to clipboard operation
oras-py copied to clipboard

[feature request] Provide python SDK

Open gaocegege opened this issue 5 years ago • 17 comments
trafficstars

Docker provides both Golang and Python SDK here https://docs.docker.com/engine/api/sdk/

If we can provide python sdk too for the custom artifact, I think we can expand the audience.

gaocegege avatar Jun 12 '20 08:06 gaocegege

This would help out a project I am going to work on soon! Hope a +1 might get it on a roadmap or what not.

mirdaki avatar Aug 03 '20 21:08 mirdaki

+1 on this feature. I would love to help get this done. I'm not really sure how this would look like. How does Docker manage the client SDKs? Issue for reference: https://github.com/mlperf/mlbox/issues/89

swiftdiaries avatar Sep 11 '20 15:09 swiftdiaries

I'd imagine this as another repo ORAS-python, so the python sdk could be built and versioned independently, but happy to support the work with a set of capabilities we focus upon.

SteveLasker avatar Sep 13 '20 22:09 SteveLasker

In case it's helpful, I just finished a first draft of a distribution spec Python client, "Reggie Python" in the opencontainers distribution module to mirror the GoLang counterpart, Reggie inspired by @jdolitsky. Has anyone started working on ORAS-python, or need help? I really enjoy this stuffs so I can offer to help, but I'd probably need pointers since I'm familiar with the distribution spec but not oras specifically.

vsoch avatar Oct 19 '20 20:10 vsoch

If anyone would like to implement ORAS in Python, we'd be happy to adopt it under ORAS. If so, please reach out and we can add it to the ORAS family. We'd love to make ORAS multi-lingual.

SteveLasker avatar Apr 06 '21 23:04 SteveLasker

@SteveLasker I'd really enjoy doing this as a weekend project, seems up my alley :) Is there any documentation or discussion to be had, or just point at this repository and say "Make it Python!" I could probably do that over the weekends as a fun project.

vsoch avatar Apr 07 '21 00:04 vsoch

Thanks @vsoch, We're about to do a split of the libraries and binaries oras-project/oras#181, so I'd suggest tracking that item and once complete you should have what you need to do a python version. Or, this will help us understand what we need to doc, so you could write a python version.

Steve

SteveLasker avatar Apr 07 '21 00:04 SteveLasker

Hi, is there any progress? I am still waiting for the upstream python SDK to support https://github.com/kleveross/ormb

Or I can help implement such an SDK for the community.

gaocegege avatar Dec 06 '21 08:12 gaocegege

I started but I haven't been able to make the time, so please take the reins if you can! https://github.com/vsoch/oras-python

vsoch avatar Dec 06 '21 08:12 vsoch

Cool!

Can you please push it to the upstream https://github.com/oras-project/oras-py, then maybe we can collaborate on it!

gaocegege avatar Dec 06 '21 08:12 gaocegege

Sure! It’s 2am here so I can do this tomorrow - feel free to grab the commits and do it on my behalf.

I can definitely more easily help if it’s a team effort - would be nice to have someone to chat to about it. I was trying to reproduce the Go structure verbatim which in retrospect I’m not sure was the right approach.

vsoch avatar Dec 06 '21 09:12 vsoch

I am in https://cloud-native.slack.com/archives/CJ1KHJM5Z and my slack ID is https://cloud-native.slack.com/archives/D91B8M3J4 (gaocegege), we can discuss it in the channel.

gaocegege avatar Dec 06 '21 10:12 gaocegege

@SteveLasker @vsoch What's the repository status on the oras python SDK?

shizhMSFT avatar May 07 '22 12:05 shizhMSFT

There is a branch that starts to mirror the Go SDK, but after starting i I think copying the same design is the wrong approach, so it's largely abandoned. If there were a more general design spec I could probably whip together the project, but I wasn't able to not knowing those details.

vsoch avatar May 07 '22 13:05 vsoch

@swiftdiaries @mirdaki @gaocegege Now we have the ORAS-py project officially: https://github.com/oras-project/oras-py, I would appreciate you if you can try it and provide your feedback.

@vsoch Shall we move this discussion to the ORAS-py repo?

FeynmanZhou avatar Aug 31 '22 14:08 FeynmanZhou

Sure, that works for me! Any issues / questions that are opened there I'm happy to field.

vsoch avatar Aug 31 '22 16:08 vsoch

Is there a reason this was re-opened?

vsoch avatar Mar 22 '23 11:03 vsoch