LOD-GEOSS / databus-snippets

3 stars 1 forks source link

New databusclient python package #18

Open yum-yab opened 2 years ago

yum-yab commented 2 years ago

We recently published a python module named databusclient (see here the pypi page) to have the development of submitting to the Databus in one place (see here). It is currently very basic and contains only the most necessary functions, you can check the example (which does the exact same as the old one) in databusclient_example.py

@henhuy since you contributed the most: maybe you can switch the usage of the old script with the module we did and maybe give some feedack if you think something is missing.

henhuy commented 2 years ago

Thanks for releasing the databusclient! This is very helpful. From my side we could remove my old script in favor of your _databusclientexamply.py example. I updated my oep registration script accordingly.

henhuy commented 2 years ago

I saw that you have to set up version_id manually by concatenating URI, account, group, artifact and version as: version_id = f"{DATABUS_URI_BASE}/{ACCOUNT_NAME}/{groupid}/{artifactid}/{version}" before calling createDataset. Wondered why you changed to this, instead of passing group etc as parameters and set up version_id internally?