Skip to content

docs: source download badge from pepy.tech to stop pypistats rate-limit errors#143

Merged
lesnik512 merged 1 commit into
mainfrom
docs/pepy-download-badges
Jun 30, 2026
Merged

docs: source download badge from pepy.tech to stop pypistats rate-limit errors#143
lesnik512 merged 1 commit into
mainfrom
docs/pepy-download-badges

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Problem

The download badge used img.shields.io/pypi/dm/<pkg>, which shields.io sources from pypistats.org. pypistats rate-limits by IP, so the badge intermittently rendered "rate limited by upstream service" (badges/shields#11620).

Change

  • Image: img.shields.io/pypi/dm/<pkg>.svg -> static.pepy.tech/badge/<pkg>/month
  • Link: pypistats.org/packages/<pkg> -> pepy.tech/projects/<pkg>

pepy serves statically cached SVGs from a different upstream. Metric stays monthly downloads. Mirrors the same fix already merged in modern-di (#250).

Verification

  • static.pepy.tech/badge/<pkg>/month returns HTTP 200 and renders a count.
  • Docs-only change; no code or tests affected.

🤖 Generated with Claude Code

…it errors

The download badge fetched from img.shields.io/pypi/dm/<pkg>, which shields
sources from pypistats.org. pypistats rate-limits by IP, so the badge
intermittently rendered "rate limited by upstream service".

Switch to static.pepy.tech/badge/<pkg>/month (statically cached SVG from a
different upstream) and repoint the link to pepy.tech/projects/<pkg>. Metric
stays monthly downloads.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lesnik512 lesnik512 merged commit c22b02f into main Jun 30, 2026
7 checks passed
@lesnik512 lesnik512 deleted the docs/pepy-download-badges branch June 30, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant