Possible to get pypi downloads without mirrors? #7758
-
Hi all, Is there a way I can do this with my shield? Apologies if I've missed something in the docs. I have searched. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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 forward to our corresponding badge urls |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response. I was mistaken in thinking that the number presented by pypistats included mirrors. Other pypistats api requests can have parameters to chose whether to include mirrors or not, but that's probably not a useful thing from a badge point of view. It turns out that my package was just more popular than I thought! :D Thanks again. |
Beta Was this translation helpful? Give feedback.
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…