Page MenuHomePhabricator

Pywikibot Download Statistic
Open, Needs TriagePublic

Description

Here is the downloads statistic from pypi for the last 6 months:

Version Downloads [%]78 139
3.120.0
3.113.5+1.8
3.1010.6+3.6
3.919.9-0.2
3.834.5-1.3
3.74.4-0,5
3.61.1
3.50.0
3.4n.a.-
2.70.2+0.1
unknown25.8-3.5
SystemDownloads [%]78 580
Darwin0.8+0.1
Linux71.6+3.2
Windows1.8+0.3
Other0.00.0
unknown25.8+3.6

Source: https://pypistats.org/packages/pywikibot

from collections import Counter
from pprint import pprint
from pywikibot.comms.http import fetch
python_url = 'https://pypistats.org/api/packages/pywikibot/python_minor'
system_url = 'https://pypistats.org/api/packages/pywikibot/system'
result = fetch(<url>)
data = result.json()['data']
c = Counter()
for d in data: c[d['category']] += d['downloads']
x = Counter((key, elem * 100 / c.total()) for key, elem in c.items())
pprint(x)
c.total()

Event Timeline

Xqt updated the task description. (Show Details)