Skip to content

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

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#221
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>
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lesnik512 lesnik512 merged commit ffd7053 into main Jun 30, 2026
12 checks passed
@lesnik512 lesnik512 deleted the docs/pepy-download-badges branch June 30, 2026 16:41
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