Skip to content

Possible to get pypi downloads without mirrors? #7758

Answered by calebcartwright
idnahacks asked this question in Q&A
Discussion options

You must be logged in to vote

Something important to keep in mind is that Shields is really just focused on badges, and is reliant on the upstream systems of records to provide whatever data they have. In order to render our pypi downloads badge, we also fetch data from pypistats, and we use the number as they provide.

My understanding was that pypistats does exclude mirrors by default. Whether or not they do, or whether they can but do so conditionally, is a question you would need to take up with them over in https://github.com/crflynn/pypistats.org

Let us know what you discover, as if it turns out the pypistats API does support conditionality via request parameters then we could certainly consider pulling those for…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by idnahacks
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants