crflynn / pypistats.org

PyPI downloads analytics dashboard
https://pypistats.org/
139 stars 10 forks source link

Text totals don't seem to match up with graph numbers #2

Closed leviable closed 6 years ago

leviable commented 6 years ago

It seems like the text totals for a package don't add up to what the graphs show. In the below image, the text shows 0, 7, and 15 downloads for day, week, and month, respectively, but the associated graph seems to show at least an order of magnitude more downloads. Am I reading the graph incorrectly? Perhaps the text totals are for downloads without mirrors, only?

image

crflynn commented 6 years ago

The text values refer to the total downloads for Without_Mirrors (orange). In fact, all of the metrics on the site exclude a set of known pypi mirrors, (except the With_Mirrors data points, of course): https://github.com/crflynn/pypistats.org/blob/49d04de2a5f203a1fc8a994078012a915751f9b0/pypistats/tasks/pypi.py#L16 Maybe I'm wrong in my assumption but I imagine developers and maintainers would be more interested in end-user download data. My intent was to provide metrics that reflect individual user downloads, hence excluding mirrors.

leviable commented 6 years ago

Ahh, thank you for the clarification. I had a different idea of what "with_mirrors" meant, but your explanation cleared that up.

Thank you so much for the wonderful site 👍