gdcc / pyDataverse

Python module for Dataverse Software (dataverse.org).
http://pydataverse.readthedocs.io/
MIT License
64 stars 45 forks source link

Add monthly endpoint for MetricsAPI #211

Open DS-INRA opened 1 month ago

DS-INRA commented 1 month ago

Before we can start

Before moving on, please check some things first:

Prerequisites

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 ?

JR-1991 commented 3 weeks ago

@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.