Skip to content

Conversation

@amrit110
Copy link
Member

This pull request adds a "type" field to all PyPI package metrics and analytics, enabling filtering and clearer categorization of packages as either "tool" or "bootcamp". The analytics UI is updated to allow users to filter PyPI packages by type, and the metrics calculations, sorting, and display now respect the selected filter. The underlying data files are updated to include the new "type" field and to add a new "bootcamp" package.

Most important changes:

Frontend: PyPI Analytics Filtering and Display

  • Added a type field to the PyPISnapshot, PyPIPackageHistory, and PyPIMetrics interfaces, and introduced a PyPIFilter type to support filtering by package type in catalog/app/analytics/page.tsx. [1] [2] [3] [4]
  • Implemented UI filter buttons for "All", "Tool", and "Bootcamp" packages in the analytics page, allowing users to filter PyPI metrics and see package counts by type.
  • Updated all aggregate calculations, top performer lists, and sorting logic to use the filtered PyPI metrics based on the selected package type. [1] [2] [3]
  • Displayed the package type ("Tool" or "Bootcamp") in the PyPI package table for better clarity.

Data: PyPI Metrics and History

  • Updated pypi_metrics.json and pypi_metrics_history.json to include the type field for all packages, and added a new "bootcamp" package (aieng-rag-utils) with its metrics and history. [1] [2] [3] [4] [5] [6]

These changes enable users to distinguish between production-ready tools and educational/demo packages in analytics, improving clarity and usability.

@amrit110 amrit110 self-assigned this Nov 27, 2025
@amrit110 amrit110 added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 27, 2025
@amrit110 amrit110 merged commit 5bc643e into main Nov 27, 2025
5 checks passed
@amrit110 amrit110 deleted the add_bootcamp_packages branch November 27, 2025 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants