ysskrishna logoysskrishna

PyPI Package Stats Action

PyPI download counts in your workflow run, with a summary table you can read at a glance.

Built with
GitHub Marketplace Actions
GitHub Actions
PyPI
Python
Details
FreeMIT licenseCreated March 9, 2026Updated November 12, 2026
Share this product

Your release pipeline runs. The download numbers still live somewhere else.

You ship from GitHub Actions already. When someone asks how the package is doing, you still open another site, copy a number, and paste it into a thread or a note. The pipeline that cares about the release never sees the signal.

PyPI Package Stats Action puts those figures in the job that already runs.

Download counts where your workflow already lives.

What you get

  • One step, one package name. The workflow fetches download totals and package metadata in a single pass.
  • Numbers the next step can use. Day, week, and month download fields are exposed as outputs when you give the step an id.
  • A file on disk. The same payload lands in a JSON file at a path you choose, handy for artifacts or later jobs.
  • A table on the run Summary. A Markdown stats table shows up on the workflow run page with no extra setup.
  • Clear failures. Missing packages, upstream API trouble, or a bad output path stop the step with a readable error in the Actions UI.
  • Free and open source. MIT licensed, listed on the GitHub Marketplace.

Picture your Monday

Your scheduled workflow runs after a release (an illustrative example). The Summary tab already shows last month’s download total in a small table. A follow-up step compares that output to a floor you care about and posts a warning when the number dips. You never opened a stats site by hand.

Ready to try it?

Keep exploring

Frequently asked questions

How do I add PyPI download stats to a GitHub Actions workflow?

Add the marketplace action to a job and pass your package name as the required input. The README shows a minimal workflow step and how to read last month’s downloads from step outputs when you set an id.

Can I read last month’s downloads in a later step?

Yes. The action exposes last day, last week, and last month download fields as outputs, along with name, version, and a full JSON string of the stats.

Do I get a human-readable report without wiring outputs?

Yes. A Markdown stats table is added automatically to the workflow run Summary page. You can rely on that alone if you omit the step id.

Does the JSON include more than total downloads?

Yes. The saved payload includes package metadata, download totals, Python version breakdown, and operating system distribution, as documented in the README schema.

What if the package name is wrong or PyPI is down?

The action fails with a clear message when the package is not found, the upstream API errors, or the output file cannot be written. Errors appear in the Actions UI.

Can I choose where the JSON file is written?

Yes. An optional input sets the file path. The default is a file named stats.json in the workspace.

Why not just call the stats API in a shell step?

You can. This action wraps the fetch, formats counts, writes the file, fills the Summary table, and maps failures into workflow errors so you do not maintain that glue on every repo.

Is it free?

Yes. It is open source under the MIT license and marked free on the product listing.

Continue exploring

BlogCover image for How to Add PyPI Download Stats to GitHub Actions

How to Add PyPI Download Stats to GitHub Actions

GitHub Marketplace Actions
GitHub Actions
+2
4 min read
ProductGitHub MarketplaceGitingest Action

Gitingest Action

Repo-to-text digests in your workflow: stats, folder tree, and file contents ready for an LLM.
GitHub Marketplace Actions
GitHub Actions
+2
BlogCover image for Analyze Git Repositories in GitHub Actions Using Gitingest

Analyze Git Repositories in GitHub Actions Using Gitingest

GitHub Marketplace Actions
GitHub Actions
+2
4 min read
ProductGitHub MarketplaceRelease from Changelog or Tag

Release from Changelog or Tag

The changelog section you already wrote becomes the GitHub Release.
DevOps & Infrastructure
GitHub Marketplace Actions
+2
CourseCover image for Agent Building Blocks: Skills, Subagents, MCP and Hooks

Agent Building Blocks: Skills, Subagents, MCP and Hooks

A free, hands-on course on the four pieces behind Cursor and Claude Code agents: skills, subagents, MCP servers and hooks. Build each one, then combine them.

Agent Skills
Chat & AI
+1

9 chapters · 25 min

ToolCover image for AI Token Counter

AI Token Counter

AI token counter with model pricing and context-window comparison in your browser.

Chat & AI
AI Apps & Assistants
+1