Here is the downloads statistic from pypi for the last 6 months:
Version | Downloads [%] | 78 139 |
3.12 | 0.0 | |
3.11 | 3.5 | +1.8 |
3.10 | 10.6 | +3.6 |
3.9 | 19.9 | -0.2 |
3.8 | 34.5 | -1.3 |
3.7 | 4.4 | -0,5 |
3.6 | 1.1 | |
3.5 | 0.0 | |
3.4 | n.a. | - |
2.7 | 0.2 | +0.1 |
unknown | 25.8 | -3.5 |
System | Downloads [%] | 78 580 |
Darwin | 0.8 | +0.1 |
Linux | 71.6 | +3.2 |
Windows | 1.8 | +0.3 |
Other | 0.0 | 0.0 |
unknown | 25.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()