mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-21 15:21:30 +00:00
fix: resolve PyPI download counts through curated package overrides
A pypi.org identity sweep of all 438 cached rows (project_urls/home_page vs entry GitHub URL) found download counts were looked up by README display name, so entries whose name differs from the canonical package silently measured squatters or dead predecessors: pytorch measured a squatter (169,737/mo vs torch's 94M), jinja measured Jinja1 (3,168 vs jinja2's 736M), django-rest-framework a dead alias package (real: djangorestframework), django-rules an abandoned fork (real: rules), strawberry an unrelated bookmarking service (real: strawberry-graphql), devpi a deprecated metapackage (mapped to devpi-server). New curated website/data/pypi_name_overrides.json maps normalized README name to the real package, or null for projects not pip-installable whose name is squatted or a relic (cpython, pyenv, renpy, python-patterns, winpython); also maps mem0 to mem0ai, fasthtml to python-fasthtml, and playwright-python to playwright. All three fetch scripts resolve names through it; the clickpy TSV cache gains a package column recording what each row actually measured. .gitignore switches website/data/ to website/data/* with a negation so the curated overrides file is tracked while caches stay ignored. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
e9329d4d1e
commit
b440e64cd0
5 changed files with 72 additions and 20 deletions
16
website/data/pypi_name_overrides.json
Normal file
16
website/data/pypi_name_overrides.json
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"cpython": null,
|
||||
"devpi": "devpi-server",
|
||||
"django-rest-framework": "djangorestframework",
|
||||
"django-rules": "rules",
|
||||
"fasthtml": "python-fasthtml",
|
||||
"jinja": "jinja2",
|
||||
"mem0": "mem0ai",
|
||||
"playwright-python": "playwright",
|
||||
"pyenv": null,
|
||||
"python-patterns": null,
|
||||
"pytorch": "torch",
|
||||
"renpy": null,
|
||||
"strawberry": "strawberry-graphql",
|
||||
"winpython": null
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue