Here is the downloads statistic from pypi for the last 6 months:
| Version | Downloads [%] | 107 012 |
| 3.13 | 0.0 | |
| 3.12 | 8.4 | +7.9 |
| 3.11 | 19.1 | +8.7 |
| 3.10 | 33.6 | +12.6 |
| 3.9 | 21.7 | +0.7 |
| 3.8 | 9.1 | -14.5 |
| 3.7 | 2.1 | -1.3 |
| 3.6 | 0.4 | |
| 2.7 | 0.1 | |
| unknown | 5.4 | -14,3 |
| System | Downloads [%] | 107 983 |
| Darwin | 1.8 | +0.3 |
| Linux | 92.3 | +15.7 |
| Windows | 2.7 | +0.1 |
| Other | 0.0 | |
| unknown | 3.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()