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

PyPi just removed download statistics #716

Closed
awnumar opened this issue May 16, 2016 · 19 comments
Closed

PyPi just removed download statistics #716

awnumar opened this issue May 16, 2016 · 19 comments
Labels
needs-upstream-help Not actionable without help from a service provider service-badge New or updated service badge

Comments

@awnumar
Copy link

awnumar commented May 16, 2016

The issue where it happened is here: https://bitbucket.org/pypa/pypi/issues/396/download-stats-have-stopped-working-again

You can visit any PyPi package to confirm.

@espadrine
Copy link
Member

I'll leave the badges; they'll be converted to warehouse when it is done.

@awnumar
Copy link
Author

awnumar commented May 16, 2016

Converted to warehouse?
On 16 May 2016 22:45, "Thaddee Tyl" notifications@github.com wrote:

I'll leave the badges; they'll be converted to warehouse when it is done.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#716 (comment)

@espadrine
Copy link
Member

Re: warehouse, I am not knowledgeable, I merely read this comment.

all the developers are working on warehouse, the successor of PyPI

@awnumar
Copy link
Author

awnumar commented May 17, 2016

Ah. I'll leave this issue open then, unless you wish to close it.

@jab
Copy link

jab commented Jun 19, 2016

It looks like it might be possible to fix this without having to wait for PyPI to be migrated to the new site. Looking at one of my libraries on the new site, it is pulling statistics in line with what I'd expect (5k/month):
screen shot 2016-06-19 at 11 59 18

My shields.io badge currently says 2/month: https://img.shields.io/pypi/dm/bidict.svg

Hopefully someone can look into how hard it would be to switch shields.io to using this other source for PyPI stats (including me if no one beats me to it).

@awnumar
Copy link
Author

awnumar commented Jun 21, 2016

Nope those statistics are false. Warehouse hasn't added stats yet.

@jab
Copy link

jab commented Jun 25, 2016

Derp, you're right, looks like it shows the same numbers no matter what project you try. (Too bad they don't put "TODO" there instead of misleading fake numbers.)

I guess for now I'll just comment out my downloads badges, which are currently showing bogus, pitiful download counts, unless some better workaround is possible. (For example, there's no way to get at the most recent accurate number, is there?)

@joeyespo
Copy link

joeyespo commented Aug 4, 2016

Sounds like the stats from Warehouse should be usable now: pypi/legacy#396 (comment)

@awnumar
Copy link
Author

awnumar commented Aug 4, 2016

As far as I can tell, there are no stats at warehouse anymore.

@awnumar
Copy link
Author

awnumar commented Aug 4, 2016

A workaround to access statistics: https://mail.python.org/pipermail/distutils-sig/2016-May/028986.html

openstack-gerrit pushed a commit to openstack/octavia that referenced this issue Oct 1, 2016
Pypi is no longer providing download stats for packages [1].
Removing the shield from our readme.txt.

[1] badges/shields#716

Change-Id: I6679f592e866068752b9c695f7357efb6b59c324
@idlesign
Copy link

Legacy JSON API of interest is and will probably be available at https://pypi.org/pypi/{package_name}/json
Yet download counters are zero for now.

@hugovk
Copy link

hugovk commented Mar 1, 2017

Any news/progress on fixing PyPI downloads badges?

@espadrine
Copy link
Member

AFAIK, the only way to do it currently is through https://bigquery.cloud.google.com/dataset/the-psf:pypi, but it's non-trivial (nor free of charge), and the generic table is empty, we have a separate table for every day, so that we can't simply do:

SELECT count(*)
FROM [the-psf:pypi.downloads]
WHERE file.project = 'bidict'
AND timestamp > DATE_ADD(CURRENT_DATE(), -1, "MONTH");

jacebrowning added a commit to doorstop-dev/doorstop that referenced this issue Mar 12, 2017
@paulmelnikow paulmelnikow added bug Bugs in badges and the frontend needs-upstream-help Not actionable without help from a service provider labels Mar 28, 2017
hugovk added a commit to python-pillow/Pillow that referenced this issue Apr 12, 2017
Let's remove the downloads badge as it's broken and showing 0 downloads/month.

See also #2396 and badges/shields#716.

[CI skip]
@paulmelnikow paulmelnikow added the service-badge New or updated service badge label Apr 17, 2017
wiredfool pushed a commit to wiredfool/Pillow that referenced this issue Apr 19, 2017
Let's remove the downloads badge as it's broken and showing 0 downloads/month.

See also python-pillow#2396 and badges/shields#716.

[CI skip]
dbrgn added a commit to dbrgn/RPLCD that referenced this issue May 10, 2017
joernhees added a commit to RDFLib/rdflib that referenced this issue May 14, 2017
@joernhees
Copy link

just a suggestion: instead of "downloads: 0" maybe write "downloads: -1" or "downloads: defunct"?

jhermann pushed a commit to DiffSK/configobj that referenced this issue Oct 13, 2018
vtemian added a commit to vtemian/buffpy that referenced this issue May 22, 2019
PyPi doesn't support downloads statistics anymore [badges/shields#716].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-upstream-help Not actionable without help from a service provider service-badge New or updated service badge
Projects
None yet
Development

No branches or pull requests

8 participants