Skip to main content

CLI tool for PyPI package analytics from pypistats.com

Project description

pypistats-cli

Check PyPI package health, download trends, and version breakdowns from your terminal.

Powered by pypistats.com.

PyPI version Python 3.9+ License: MIT PyPI Stats

Install

pip install pypistats-cli

Setup

An API key is required. Get one for free at pypistats.com:

  1. Sign up at pypistats.com
  2. Go to your dashboard and generate an API key
  3. Export it in your shell:
export PYPISTATS_API_KEY=pyps_your_key_here

Add it to your ~/.bashrc or ~/.zshrc to persist across sessions.

Usage

pypistats check requests
╭─ requests v2.32.5 ──────────────────────────────────╮
│                                                      │
│  Downloads (30d):  ▄▄▂▂▅▆▅▄▄▂▁▃▄▄▄▅▃▂▄▅▆█▄▂▂▁▆  1.0B │
│  Trend:            +0.1% ↑                           │
│  Health:           █████████░ 91/100                 │
│  License:          Apache-2.0                        │
│  Author:           Kenneth Reitz                     │
│                                                      │
│  Top Versions                                        │
│  2.32.5      ██████████████  69.6%                   │
│  2.31.0      ██  8.3%                                │
│  2.32.4      █  7.2%                                 │
│  2.32.3      █  5.4%                                 │
│  2.27.1      █  1.5%                                 │
╰──────────────────────────────────────────────────────╯

Options

# Custom time window
pypistats check fastapi --days 7

# Help
pypistats --help
pypistats check --help

Features

  • Download trends with sparkline visualization
  • Health score (0-100) based on download consistency, popularity, metadata, and growth
  • Version breakdown showing adoption percentages
  • Package metadata including license, author, and latest version
  • AI Summary (PRO/Enterprise) — AI-powered health analysis and insights

Tiers

Feature Free Pro Enterprise
Download stats Yes Yes Yes
Health score Yes Yes Yes
Version breakdown Yes Yes Yes
AI Summary No Yes Yes
Rate limit 10/min 60/min 300/min

Get your API key at pypistats.com/pricing.

Requirements

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypistats_cli-0.2.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypistats_cli-0.2.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file pypistats_cli-0.2.0.tar.gz.

File metadata

  • Download URL: pypistats_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for pypistats_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8da0f2c19623174aefa3d0859a9855c94ee26e40ec3be9c1b24ef8e95750aaf7
MD5 2181294e730e6847d1c247bb0332afdc
BLAKE2b-256 8f98aa838e8baa64fccb3ccfba511853e110d2a76a6f5d6b342a83ec529a253f

See more details on using hashes here.

File details

Details for the file pypistats_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pypistats_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for pypistats_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1d53ca19aa2e356a73d28cb2a45932f40a839d57a615c3ea6557b7a6529daf2
MD5 f331c859a61a6142af73652edac06432
BLAKE2b-256 0df1c900f5773d82c407dea52cfed4e1879b648c28b8af12a07045909f508ad6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page