GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: only count downloads for the actual artifacts by miketheman · Pull Request #242 · pypi/infra

Conversation

@miketheman

@miketheman miketheman commented Aug 21, 2026

Copy link
Copy Markdown
Member

A variety of other artifacts may be served from the storage layer, and download counts are skewed as a result.

This change only counts things we consider artifacts.

Refs: https://peps.python.org/pep-0527/
Refs: pypi/warehouse#7529
Refs: https://peps.python.org/pep-0715/
Refs: pypi/warehouse#14118

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@miketheman
chore: only count downloads for the actual artifacts
50404a8
A variety of other artifacts may be served from the storage layer, and
download counts are skewed as a result.

This change only counts things we consider artifacts.

Refs: https://peps.python.org/pep-0527/
Refs: pypi/warehouse#7529
Refs: https://peps.python.org/pep-0715/
Refs: pypi/warehouse#14118

Signed-off-by: Mike Fiedler <[email protected]>
@miketheman

miketheman commented Aug 21, 2026

Copy link
Copy Markdown
Member Author

A demonstrative distribution:

ext files pct_files
.whl 12302722 59.1212
.tar.gz 8275498 39.7682
.egg 119695 0.5752
.zip 89681 0.431
.exe 16729 0.0804
.tar.bz2 3582 0.0172
.msi 582 0.0028
.rpm 539 0.0026
.tgz 204 0.001
.dmg 44 0.0002
.deb 34 0.0002

Query:

Details
WITH tail AS (
    SELECT lower(nullif(right(filename, position('.' in reverse(filename))), '')) AS last_ext,
           lower(filename) AS lf
    FROM release_files
), exts AS (
    SELECT CASE
               WHEN last_ext IN ('.gz', '.bz2', '.xz', '.z', '.lz', '.lzma')
                    AND lf LIKE '%.tar' || last_ext
                   THEN '.tar' || last_ext
               ELSE COALESCE(last_ext, '(no extension)')
           END AS ext
    FROM tail
)
SELECT ext,
       count(*) AS files,
       round(100.0 * count(*) / sum(count(*)) OVER (), 4) AS pct_files
FROM exts
GROUP BY ext
ORDER BY files DESC;
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

JacobCoffee
JacobCoffee approved these changes Aug 21, 2026
View reviewed changes
@miketheman
miketheman requested a review from a team August 21, 2026 16:55
@miketheman
miketheman merged commit 260c044 into pypi:main Aug 24, 2026
@miketheman
miketheman deleted the miketheman/only-log-package-downloads branch August 24, 2026 15:04
@JacobCoffee JacobCoffee mentioned this pull request Aug 31, 2026
PyPI Download Counts Update psf/pypistats.org#113
Open
@JacobCoffee JacobCoffee mentioned this pull request Oct 22, 2026
.whl.metadata file downloads are recorded with filetype=bdist_wheel pypi/warehouse#16207
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JacobCoffee JacobCoffee JacobCoffee approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@miketheman @JacobCoffee
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.