pyDataverse icon indicating copy to clipboard operation
pyDataverse copied to clipboard

Add monthly endpoint for MetricsAPI

Open DS-INRAE opened this issue 1 year ago • 1 comments

Before we can start

Before moving on, please check some things first:

  • [x] Your issue may already be reported! Please search on the issue tracker before creating one.

None found with "monthly"

  • [x] Is this something you can debug and fix? Send a pull request! For more information, see the Contributor Guide.

Possible but not likely (time needed)

Prerequisites

  • [x] Are you running the latest version?

pyDataverse==0.3.3

Feature Request

Add support for /api/info/metrics/{metric}/monthly in the MetricsAPI class

Question : would it be best to have a series of get_dataset/file/dataverses_by_month() or a more generic function get_metric_by_month() with the type as a parameter ?

DS-INRAE avatar Aug 02 '24 17:08 DS-INRAE

@DS-INRA, thank you for submitting the feature request! I recommend creating a generic function that uses an Enum to encode the types, as it would be straightforward. I’ve added this to our working group project as a todo item and will handle the PR once other tasks are completed.

JR-1991 avatar Aug 22 '24 10:08 JR-1991