Add metrics for pypi package downloads #31
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces automated collection and tracking of PyPI download metrics for several Vector Institute Python packages. It updates the workflow to gather this data, adds new metadata fields to repository YAML files, and generates new JSON files with current and historical download statistics.
PyPI Metrics Collection and Data Integration:
.github/workflows/deploy-catalog.yml) to install therequestslibrary and add a new step that collects PyPI metrics via thecollect_pypi_metrics.pyscript. This step is tolerant to errors to avoid failing the workflow if metric collection has issues.catalog/public/data/:pypi_metrics.jsonfor current PyPI stats andpypi_metrics_history.jsonfor historical snapshots, covering the packagespycyclops,fed-rag,vec-inf,fair-sense-ai, andfl4health. [1] [2]Repository Metadata Enhancements:
package_namefield to the YAML files for each relevant repository (cyclops.yaml,fed-rag.yaml,vector-inference.yaml,fair-sense-ai.yaml,fl4health.yaml) to link repositories with their corresponding PyPI packages. [1] [2] [3] [4] [5]