I've got a couple of packages on the Python Package Index (PyPI) now. Is there any way to get hold of statistics as to how many times they have been downloaded (either manually or via easy_install
or pip
?
Or, alternatively, how many views the main package page has received?
UPDATE 2: it's back! There's now a "Downloads (All Versions)" just after the list of downloads (below the user-supplied docs).
announcement at http://mail.python.org/pipermail/distutils-sig/2013-June/021344.html - it's currently daily counts; weeks and months will be added as they become available. but, curiously, no total.
UPDATE: this no longer works (the info is not displayed) - see http://mail.python.org/pipermail/distutils-sig/2013-May/020855.html (unfortunately this affects the other answer too).
maybe i'm misunderstanding (sorry) but i think this is on the pypi main page for your project!
see updates above for latest details (i've deleted info below that's no longer correct).
There are at least two packages that help with this: pypstats
and vanity
. Vanity is very easy to use from the command line:
vanity numpy
and you'll get a printout to your console.
Pip statistics is not available on pypi.python.org website and vanity
package does not work as well.
Today you can get pip statistics only through this dataset in BigQuery: https://bigquery.cloud.google.com/dataset/the-psf:pypi
Query example for https://pypi.python.org/pypi/dvc package:
SELECT
details.system.name,
COUNT(*) as download_count,
FROM
TABLE_DATE_RANGE(
[the-psf:pypi.downloads],
DATE_ADD(CURRENT_TIMESTAMP(), -31, "day"),
DATE_ADD(CURRENT_TIMESTAMP(), -1, "day")
)
WHERE
file.project = 'dvc'
GROUP BY details.system.name
Please note, some of the download signals are generated by monitoring tools and should not be counted as user's downloads. For example, you should exclude null
values from the output:
Row details_system_name download_count
1 Darwin 1111
2 null 10000
3 Windows 222
4 Linux 3333