pyDataverse
pyDataverse copied to clipboard
Add monthly endpoint for MetricsAPI
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-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.