2021-10-03 13:42:26 +00:00
|
|
|
# Analysis of version adoptions on PyPI
|
2021-10-03 13:39:45 +00:00
|
|
|
|
2021-12-29 10:24:21 +00:00
|
|
|
We get
|
|
|
|
[publicly available PyPI download statistics](https://bigquery.cloud.google.com/table/bigquery-public-data:pypi.downloads)
|
|
|
|
on Google BigQuery using [pypinfo](https://github.com/ofek/pypinfo/).
|
|
|
|
|
|
|
|
[Here](https://github.com/pypa/linehaul-cloud-function) is the repo
|
|
|
|
for the open-source code pushing the pypi stats to BigQuery.
|
2021-10-03 13:39:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
First you need to get an access to PyPI's BigQuery, by following
|
|
|
|
[pypinfo](https://github.com/ofek/pypinfo/) procedure.
|
|
|
|
|
|
|
|
Then there's two main invocations, first fetch the data using:
|
|
|
|
|
|
|
|
python python-versions.py --fetch
|
|
|
|
|
|
|
|
Then plot it using:
|
|
|
|
|
|
|
|
python python-versions.py
|
|
|
|
|
|
|
|
|
|
|
|
## Data
|
|
|
|
|
2022-01-01 20:28:20 +00:00
|
|
|
### Percentage of pypi.org downloads
|
2021-10-03 13:39:45 +00:00
|
|
|
|
2022-01-01 20:28:20 +00:00
|
|
|
![](python-versions-pct.png)
|
2021-12-07 23:24:09 +00:00
|
|
|
|
|
|
|
|
2022-01-01 20:28:20 +00:00
|
|
|
### Number of pypi.org downloads
|
2021-12-07 23:24:09 +00:00
|
|
|
|
2022-01-01 20:28:20 +00:00
|
|
|
![](python-versions.png)
|