Page MenuHomePhabricator

Pywikibot Download Statistic
Closed, ResolvedPublic

Description

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

Version Downloads [%]107 012
3.130.0
3.128.4+7.9
3.1119.1+8.7
3.1033.6+12.6
3.921.7+0.7
3.89.1-14.5
3.72.1-1.3
3.60.4
2.70.1
unknown5.4-14,3
SystemDownloads [%]107 983
Darwin1.8+0.3
Linux92.3+15.7
Windows2.7+0.1
Other0.0
unknown3.2-16.1

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)
Xqt updated the task description. (Show Details)
Xqt updated the task description. (Show Details)
Xqt updated the task description. (Show Details)
Xqt claimed this task.