Skip to content
A weekly dump of the 5,000 most-downloaded packages from PyPI
HTML Shell
Branch: master
Clone or download
Deploy Bot
Deploy Bot Deploy 9ef3c0e
Latest commit 1f3aa9d Aug 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig Show the charts in HTML Feb 12, 2018
.gitignore Initial commit Jan 9, 2018
README.md Minify for 11% smaller Feb 12, 2018
build.sh Update shebang for portability Apr 19, 2019
deploy.sh Update shebang for portability Apr 19, 2019
favicon.ico Add favicon May 9, 2018
generate.sh Update shebang for portability Apr 19, 2019
index.html Use HTTPS Aug 16, 2018
top-pypi-packages-30-days.json Deploy 9ef3c0e Aug 9, 2019
top-pypi-packages-30-days.min.json
top-pypi-packages-365-days.json Deploy 9ef3c0e Aug 9, 2019
top-pypi-packages-365-days.min.json Deploy 9ef3c0e Aug 9, 2019
top-pypi-packages.sh Don't deploy if there are build errors (eg. out of quota) Apr 19, 2019

README.md

Top PyPI Packages

A weekly dump of the 5,000 most-downloaded packages from PyPI:

Minified:

Server setup notes

From cron, it runs pypinfo to dump JSON and commit back to this repo.

Install Python 3.6, pip and jq

For example on Ubuntu 14.04:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
python3.6 --version
curl https://bootstrap.pypa.io/get-pip.py | sudo python3.6
sudo apt-get install jq

Install and set up pypinfo

Follow https://github.com/ofek/pypinfo to sign up for BigQuery, install and authenticate

sudo pip3 install "pypinfo>=13.0.0"
pypinfo --help
pypinfo --auth path/to/your_credentials.json

Set up this repo

git clone git@github.com:hugovk/top-pypi-packages.git
cd top-pypi-packages
git config user.name "Deploy Bot"
git config user.email "deploybot@example.com"
git config user.name
git config user.email

Run from cron

crontab -e
17 15 * * Tue /home/botuser/github/top-pypi-packages/top-pypi-packages.sh > /tmp/top-pypi-packages.log 2>&1
You can’t perform that action at this time.