Skip to content

Instantly share code, notes, and snippets.

@woodruffw
Created January 26, 2026 04:01
Show Gist options
  • Select an option

  • Save woodruffw/0a19d7e39ac94894a45fed88c851e90a to your computer and use it in GitHub Desktop.

Select an option

Save woodruffw/0a19d7e39ac94894a45fed88c851e90a to your computer and use it in GitHub Desktop.
Histogram of PyPI users for the top 500 most popular projects
#!/usr/bin/env bash
top500=($(curl --silent 'https://hugovk.github.io/top-pypi-packages/top-pypi-packages.json' | jq -r '.rows[0:500] | .[].project'))
for project in "${top500[@]}"; do
url="https://pypi.org/project/${project}/"
maintainers=($(curl --silent "${url}" | htmlq -t '.sidebar-section__user-gravatar-text' | sort | uniq))
for maintainer in "${maintainers[@]}"; do
echo "${maintainer}"
done
done | sort | uniq -c | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment