Python version share over time, 1

January 2016 — June 2018

Hugo
2 min readJul 5, 2018

To celebrate the release of Python 3.7 on 27th June 2018, here’s some statistics showing how much different Python versions have been used over the past two and a half years.

Here’s the pip installs for all packages from the Python Package Index (PyPI), between January 2016 and June 2018:

pip installs from PyPI over time, by Python version

And for the Pillow imaging library:

Pillow’s pip installs from PyPI over time, by Python version

How

Statistics were collected using pypi-trends.py, a wrapper around pypinfo to fetch all monthly downloads from the PyPI database on Google BigQuery and save them as JSON files. Data was downloaded over three or four days as getting all months uses up a lot of free BigQuery quota. Then jsons2csv.py converts them into a single CSV file for chart-wrangling in Excel. Raw CSV and JSON data is in the repo.

See also

Paul Kehrer fetched similar stats from BigQuery in December 2016, writing in Data Driven Decisions Using PyPI Download Statistics:

Data ingestion into the BigQuery data set was spotty prior to June 2016*, but you can see a significant uptick in Python 3 based downloads over 2016. If these trends continue…

* But it shouldn’t be biased, so these percentages are likely to be accurate.

--

--