Can i use the python SDK to share resources?

Is there an function/class within the python sdk which allows me to

  1. Check which resources is shared into which project,
  2. Manipulate the resources to share a resource into a new project ?
1 Like

Hi Jonas,

ad (1): the SDK currently provides no explicit method for that. It does however provide methods to obtain a ONE DATA resource’s JSON representation (or meta data), and in that JSON the projects object contains all ONE DATA Projects that share this resource. So once you have that JSON, you could derive the shared projects from that.

ad (2): also no, there is no explicit method for that provided by the SDK atm. However, the API’s “project” endpoint provides a way to add resources to an existing project. → PM, if you need more info. :slight_smile: