Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daily and weekly download traffic stats #10355

Closed
abitrolly opened this issue Nov 13, 2021 · 6 comments
Closed

Daily and weekly download traffic stats #10355

abitrolly opened this issue Nov 13, 2021 · 6 comments

Comments

@abitrolly
Copy link
Contributor

What's the problem this feature will solve?

I need to calculate money savings from traffic savings in #9972 to get understanding of the value of my efforts, to pitch it for better job offers.

Describe the solution you'd like

https://pypi.org/stats/ endpoint provided rendered number of the daily and weekly outgoing traffic served by infrastructure, split by traffic provider.

Ideally there should also be a link to API that allows to query more specific or detailed info.

Additional context

If there a list of all hosting infrastructure used by PyPI for the start?

@pradyunsg
Copy link
Contributor

@abitrolly
Copy link
Contributor Author

@pradyunsg have you checked that the table includes the downloaded size before closing the issue? Because there is no traffic stats.

@pradyunsg
Copy link
Contributor

pradyunsg commented Nov 14, 2021

I hadn't, and, no, that data is not directly accessible in a single spot in any public location.

Your best bet would be to also make a few hundred API requests to the JSON API to know the size of the distribution files which, combined with the total download counts, will give you your answer.

@abitrolly
Copy link
Contributor Author

@pradyunsg or reopen the issue to make the data available without few thousands JSON API calls.

@abitrolly
Copy link
Contributor Author

piwheels provides the monthly bandwidth stats - https://blog.piwheels.org/piwheels-stats-2021q3/ and I don't see the reason why $300000 project can't do the same. @pradyunsg reopen?

@di
Copy link
Member

di commented Dec 6, 2021

This is a duplicate of #787.

@pypi pypi locked as resolved and limited conversation to collaborators Dec 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants