Skip to content

jwodder/pypi-stats

Repository files navigation

Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept. CI Status MIT License

GitHub | Issues

pypi-stats (note hyphen) is a wrapper around pypistats (note non-hyphen) for making API requests to https://pypistats.org (note .org) to fetch recent download stats for given PyPI packages (and/or packages belonging to given PyPI users), outputting either a CSV file or an ASCII table.

Installation

pypi-stats requires Python 3.11 or higher. Just use pip for Python 3 (You have pip, right?) to install it:

python3 -m pip install git+https://github.com/jwodder/pypi-stats.git

Usage

pypi-stats [<options>] <package> ...

pypi-stats queries https://pypistats.org for the recent download stats for each PyPI package named on the command line, outputting the number of downloads for each one in the last month, week, and day.

Options

-A, --sort-alpha
 Sort packages alphabetically by name
-C, --csv Output a CSV document; this is the default. The first line of the output is a header giving the field names: package, last_month, last_week, and last_day, in that order.
-N, --sort-num Sort packages by downloads in the last month in descending order
-T, --table Output an ASCII table
-u, --user USER
 Also fetch download stats for all packages for which the given PyPI user is an owner or maintainer. This option can be specified multiple times.

About

Show download stats for PyPI packages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •  

Languages