PYPIView documentation

https://pypip.in/d/pypiview/badge.png https://secure.travis-ci.org/cokelaer/pypiview.png https://coveralls.io/repos/cokelaer/pypiview/badge.png?branch=master https://landscape.io/github/cokelaer/pypiview/master/landscape.png https://badge.waffle.io/cokelaer/pypiview.png?label=ready&title=Ready

PYPIView package provides a simple class to plot the number of downloads of a Pypi package (or several). The download counting is perfomed by the vanity package. The plotting is performed with the Pandas package.

Installation

pip install pypiview

Quick Start

Nothing complicated since there is just one class provided. You can look at a single package or several packages. First, we create an instance telling what package we are instereted in:

from pypiview import PYPIView
p = PYPIView("requests")

Then, we call the plotting method. Here, we use the a logarithm scale because requests package is a popular one:

p.plot(logy=True)

(Source code, png, hires.png, pdf)

_images/index-1.png

Alternatively, you can look at several packages at the same time, which is handy for comparison:

(Source code, png, hires.png, pdf)

_images/index-2.png

PYPIview provides also a command line argument called pypiview. Usage is as follows:

pypiview <list of packages separated by spaces> --verbose --logy --lw 2 --fontsize 16

Example:

pypiview requests --verbose --logy --lw 2 --fontsize 16

pypiview setuptools distribute --verbose --logy --lw 2 --fontsize 16

Reference Guide