pyDataverse icon indicating copy to clipboard operation
pyDataverse copied to clipboard

client bindings based on https://hub.dataverse.org/openapi

Open pdurbin opened this issue 9 months ago • 4 comments

Feature Request

Should we consider adding Python client bindings based on https://hub.dataverse.org/openapi ?

There's a nice Swagger UI at https://hub.dataverse.org/swagger-ui/index.html?url=/openapi

See also the discussion at https://dataverse.zulipchat.com/#narrow/channel/377090-python/topic/hub/near/510180560

pdurbin avatar Apr 04 '25 18:04 pdurbin

For now I wrote some standalone Python scripts here:

  • https://github.com/gdcc/dataverse-recipes/pull/15

pdurbin avatar Apr 09 '25 12:04 pdurbin

Awesome! Those are great starting points 🙌

I was thinking about where we should put these in the code base. I initially thought the NativeAPI class would be a good spot, but it may be confusing as it is not part of the actual native API. Maybe a new API class HubApi would make sense for a clear separation.

What are your thoughts @pdurbin?

JR-1991 avatar Apr 09 '25 12:04 JR-1991

I like HubApi! Good idea!

pdurbin avatar Apr 09 '25 13:04 pdurbin

Opened a PR #219 🙌

JR-1991 avatar Apr 09 '25 17:04 JR-1991