hadley / r-python

Exploring data related to relative usage of R vs. python
69 stars 19 forks source link

Compare package downloads #5

Open hadley opened 10 years ago

hadley commented 10 years ago

See https://pypi.python.org/pypi/pypstats for python

rgbkrk commented 10 years ago

The pypstats package pulls from PyPI's published stats which is out of date ever since PyPI switched to using a CDN.

rgbkrk commented 10 years ago

Actually, there's a JSON API! However, the results seem to only give about as much data as scraping the package pages:

>>> resp = requests.get("http://pypi.python.org/pypi/numpy/json")
>>> resp.json()
{
...
  u'downloads': {
   u'last_day': 7634,
   u'last_month': 173916,
   u'last_week': 41854},
...
}

Domain specific thing to think about though -- deployments of python applications will install these packages in automation which doesn't tell you about folks doing hands on analysis.