About PyPI Stats

PyPI Stats provides download statistics for Python packages from the Python Package Index (PyPI). Our data is collected from PyPI's download logs and processed to provide insights into package usage.

What We Track

  • Overall download counts (with and without mirrors)
  • Downloads by Python major version (2.x, 3.x)
  • Downloads by Python minor version (2.7, 3.6, 3.7, etc.)
  • Downloads by operating system (Windows, Linux, macOS)
  • Recent download statistics (day, week, month)

Data Sources

Our data comes from PyPI's BigQuery public dataset, which contains download logs from PyPI's CDN. We process this data daily to provide up-to-date statistics.

Technology Stack

PyPI Stats is built with modern web technologies to provide fast, reliable, and scalable download statistics:

Frontend

  • SvelteKit - Modern web framework for reactive UI
  • TypeScript - Type-safe JavaScript development
  • Tailwind CSS - Utility-first CSS framework
  • Chart.js - Interactive data visualization

Backend & Data

  • PostgreSQL - Primary database for statistics
  • Redis - Caching and distributed locks
  • BigQuery - Google's data warehouse for PyPI logs
  • Prisma - Type-safe database ORM

Infrastructure & Deployment

  • Docker Compose - Containerized deployment stack
  • pnpm - Fast, disk space efficient package manager
  • OpenAPI - Standardized API documentation
  • Scalar - Interactive API documentation interface

Key Features

  • On-demand ingestion - Data is fetched from BigQuery only when needed
  • Incremental updates - Only new or stale data is processed
  • Redis-backed deduplication - Prevents duplicate data processing
  • Streaming responses - Fast page loads with progressive data enhancement
  • RESTful API - Clean JSON endpoints for programmatic access
  • Dark mode UI - Modern, accessible user interface

API Access

We provide a RESTful API for programmatic access to download statistics. All endpoints return JSON data and are free to use.

Privacy

We only collect aggregate statistics and do not track individual users or their download patterns. All data is anonymized and used solely for providing download statistics.

Open Source

PyPI Stats is completely open source and available on GitHub. We welcome contributions from the community!

GitHub Repository

View the source code, report issues, or contribute to the project.

View on GitHub

PyPI Stats - Download statistics for Python packages