ysskrishna logoysskrishna

PyPI Package Stats

PyPI download counts, version mix, and package facts in one call, with disk caching built in.

Built with
PyPI Packages
Python
Typer
PyPI
GitHub Actions
Pytest
uv
Python CLI
Details
FreeMIT licenseCreated December 27, 2025Updated November 12, 2026
Share this product

You need adoption numbers. You do not need another half-finished script.

You maintain a library, or you report on a few packages every week. Someone asks how things are trending. You open a browser tab, copy a JSON field, paste it into a spreadsheet, and hope you do not hit the rate limit before the second package.

PyPI Package Stats is a small library with an optional terminal view that gathers the numbers you keep reaching for in one place.

One package name in. Totals, mix, and metadata out.

What you get

  • Download totals you can quote. Last day, week, month, and a 180-day figure, ready for a stand-up or a slide.
  • Who is actually pulling it. Top Python versions and operating systems over the last 30 days, with share percentages, not raw tables you have to decode.
  • Package context beside the counts. Name, version, description, author, licence, home page, and the PyPI link, so you are not juggling two lookups.
  • Two ways to use it. Import it in your own Python workflow, or install the optional command-line extra when you want a quick read in the terminal.
  • Output you can hand off. Human-friendly tables when you are exploring, JSON when a script or dashboard needs clean input.
  • Disk caching by default. Responses stay on disk with a configurable time-to-live (one hour by default), so repeat checks are gentler on the public API and less likely to trip rate limits.

Picture your Thursday

You are choosing between two dependencies for an internal tool. For each name, you pull the same snapshot: monthly downloads, the 180-day trend line in your head, and whether most pulls still sit on older Python versions. You paste the JSON into a comparison doc. No bespoke HTTP client. No parsing the same fields again next month.

Ready to try it?

Frequently asked questions

Why not just call the PyPI download-stats API myself?

You can. This project wraps that service so you get structured models, optional caching, and either library or terminal output without re-building the same glue in every repo. If you only need one number once, a direct call may be enough. If you check the same packages often, the caching and shaped responses save repeated work.

How do I check PyPI download statistics for a package?

Install the library from PyPI, or add the optional command-line extra when you want terminal output. Ask for a package by name and you receive metadata plus day, week, month, and 180-day download counts, along with version and operating-system mix for the last 30 days. Details are on the GitHub page and the project documentation site.

How fresh are the numbers?

Version and OS slices cover the last 30 days. Overall download totals follow the upstream service, which is usually about one or two days behind live traffic. Availability depends on that service staying up.

Can I use it from Python or only from the terminal?

Both. The base install is the library. The command-line extra adds terminal commands with table or JSON output, plus helpers to clear or inspect the on-disk cache.

How does caching help with rate limits?

The public stats service applies per-IP limits (for example, on the order of a few requests per second and a few dozen per minute at the time of writing). Cached responses cut repeat calls for the same package, which helps when you are refreshing a short list. You can turn caching off or shorten the time-to-live when you need a fresh read.

Is it free?

Yes. It is open source under the MIT licence.

What Python version do I need?

Python 3.8 or newer.

Continue exploring

ProductPyPISocial Links

Social Links

Users paste messy profile links. One Python library turns them into clean, comparable URLs.
PyPI Packages
Python
+4
ProductPyPINested Utils

Nested Utils

Deep JSON and config paths, one string, no guard maze.
PyPI Packages
Python
+4
ProductPyPIShai Hulud Detector

Shai Hulud Detector

When the worm hits the news, triage GitHub accounts for known Shai Hulud IOC signals.
Auth & Security
PyPI Packages
+6
ProductPyPIOSC 7501

OSC 7501

Tell your terminal when your CLI is working, blocked, finished, or failed.
DevOps & Infrastructure
PyPI Packages
+6
ProductPyPIQuotes Convert

Quotes Convert

Flip single and double quotes in text without breaking nested escapes.
Text & Data Conversion
PyPI Packages
+5
ProductPyPIDocker Detector

Docker Detector

One call tells your Python app whether it is running inside Docker.
DevOps & Infrastructure
PyPI Packages
+6