Skip to content

Instantly share code, notes, and snippets.

@g-k
Last active July 29, 2016 02:15
Show Gist options
  • Save g-k/cccba0b163eb73a6c70a6644dd124281 to your computer and use it in GitHub Desktop.
Save g-k/cccba0b163eb73a6c70a6644dd124281 to your computer and use it in GitHub Desktop.
one liner to get python package downloads across for all versions and releases
$ curl -so - https://pypi.python.org/pypi/Django/json | python3 -c 'import sys; import json; print(sum([release["downloads"] for version in json.load(sys.stdin)["releases"].values() for release in version]))'
22520974
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment