Skip to content

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

Notifications You must be signed in to change notification settings

gingerhot/top-pypi-packages

 
 

Repository files navigation

Top PyPI Packages

A fortnightly 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 [email protected]:hugovk/top-pypi-packages.git
cd top-pypi-packages
git config user.name "Deploy Bot"
git config user.email "[email protected]"
git config user.name
git config user.email

Run from cron

crontab -e
# Only for odd weeks https://stackoverflow.com/a/19278657/724176
30 17 * * Fri expr \( `date +\%s` / 604800 + 1 \) \% 2 > /dev/null || ( eval "$(ssh-agent -s)"; ssh-add ~/.ssh/id_rsa-top-pypi-packages; /home/botuser/github/top-pypi-packages/top-pypi-packages.sh ) > /tmp/top-pypi-packages.log 2>&1

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 82.7%
  • Shell 17.3%