awesome-python/website/templates
Vinta Chen cc804b1de2
feat: add Downloads/Month column to website table
Sourced from website/data/pypi_downloads.tsv the same way
github_stars.json feeds the stars column. The new sortable column
sits between GitHub Stars and Last Commit on the homepage and
category pages, formatted with thousands separators like stars, with
an em dash when no PyPI data exists. Rows are matched by normalized
README display name; Built-in entries never show counts since
same-named PyPI packages are stdlib backports (e.g. the asyncio
package).

Below 960px the column hides and the count moves into the expand
row, mirroring the existing Last Commit treatment. main.js gains the
downloads sort branch and URL param.

The deploy workflow fetches the TSV via the new
make fetch_pypi_downloads target with a daily actions/cache
fallback, mirroring the stars fetch, but non-fatal: the column
degrades to dashes when the fetch fails, unlike stars which the
build requires.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-16 17:52:04 +08:00
..
base.html remove index.md 2026-05-04 17:11:34 +08:00
category.html feat: add Downloads/Month column to website table 2026-08-16 17:52:04 +08:00
index.html feat: add Downloads/Month column to website table 2026-08-16 17:52:04 +08:00
llms.txt remove index.md 2026-05-04 17:11:34 +08:00
sponsorship.html fix: surface sponsorship link in header 2026-06-07 03:22:28 +08:00