piwheels stats 2021Q2
Posted by Ben NuttallIn the period of April – June 2021, 8,471,941 packages were downloaded from piwheels, bringing the total to 48,609,840. This has saved 38 years in the period, and 525 years in total! There were 56,200,613 pip searches, 764,031 project page hits, 386,472 web page hits and 116,486 project JSON downloads in the period.
We experienced a one-day spike of 168k downloads st the start of the period but averaged at 94k per day:
Downloads saved around between 11 and 14 years per month. It seems this is falling, presumably due to more downloads coming from faster platforms (Pi 3/4 vs 1/Zero).
The top 10 downloads were:
- requests (153,175)
- chardet (150,367)
- numpy (140,902)
- importlib-metadata (131,558)
- octoprint-pisupport (124,520)
- pip (118,897)
- idna (109,821)
- h11 (104,934)
- urllib3 (99,970)
- typing-extensions (99,920)
The top 10 pip searches were:
- pip (8,729,381)
- wheel (5,982,230)
- setuptools (3,978,520)
- pyrogram (1,502,564)
- future (751,603)
- youtube-dl (749,239)
- aiohttp (696,422)
- pyngrok (661,208)
- aiodns (649,962)
- six (547,745)
The top 10 project page hits were:
- opencv-python (1,210)
- opencv-contrib-python (1,108)
- numpy (981)
- scipy (700)
- tensorflow (686)
- qhub-jupyterhub-theme (493)
- pillow (445)
- cryptography (429)
- pandas (381)
- pip (335)
The top 10 project JSON downloads were:
- awscrt (12,815)
- numpy (220)
- requirements-parser (91)
- scipy (62)
- opencv-python (58)
- requests (46)
- notion2alfred-snippet (43)
- pyyaml (40)
- devjohn06test (38)
- opencv-contrib-python (37)
See the JSON API page for more information on using this API.
Platforms
Linux makes up over 99.9% of all searches so I’ve discounted the rest. Raspberry Pi OS and Debian are now combined (due to Raspberry Pi OS identifying itself as Debian). This group obviously dominates with nearly 99%. Ubuntu remains in third place with under 1%, although we don’t officially support it.
Buster accounts for nearly 94% of PiOS/Debian usage, Stretch accounts for just 6% and there’s practically no Jessie usage:
armv7l (Pi 2/3/4 platform) is still a majority architecture with 93% of searches from Arm devices (80% from armv7l). We now get more hits from aarch64 users than x86_64 and armv6l combined, when it previously trailed behind both. It seems usage of the 64-bit OS image is on the rise, although we do not as yet provide aarch64 wheels.
Python 3 has a supermajority of usage, and 3.7 (the version provided by the current stable distro) has the highest share with 71%. Python 2.7 comes second with 15%, followed by 3.8 and 3.9. Generally most users are using the Python provided by the current Debian stable – which is due to change this summer, so we’ll start to see a rise in Python 3.9 usage which could become the leader by the end of the year.
We’re also logging pip and setuptools versions:
Note that 18.1 is pre-installed in Buster, and 9.0.1 is pre-installed in Stretch. 20.1.1 is a recently released version, so likely the most common for people who update their pip.
Similarly, setuptools 40.8.0 is what’s pre-installed in Buster, but the version of pip in Stretch doesn’t send the setuptools version (33.1.1) in the user agent like it does in newer versions.
We see about 5TB of bandwidth each month, peaking at 5.35TB in April. The breakdown of bandwidth in the period is 84% pip downloads, 3% pip searches, a tiny amount (0.07%) of website traffic (project pages, JSON, etc) and the rest (13%) comprising mostly of wheel downloads from browsers (not pip):
And broken down by month:
Check out the source of this post in a Jupyter notebook: github.com/piwheels/stats/blob/master/2021q2.ipynb