Skip to main content

A command-line interface to the Python Package Index (PyPI).

Project description

pypi-cli

Latest version Travis-CI

A command-line interface to the Python Package Index (PyPI). Get package info, download statistics, and more.

Screenshot

Get it now

$ pip install pypi-cli

Requirements

  • Python >= 2.7 or >= 3.3

Examples

Get Package Info

Use the pypi info command to get summary information for a package.

$ pypi info matplotlib
matplotlib
==========
Python plotting package

Latest release:   1.3.1

Last day:           2,015
Last week:         16,744
Last month:        59,989

Author:   John D. Hunter, Michael Droettboom
Author email: mdroe@stsci.edu

PyPI URL:  http://pypi.python.org/pypi/matplotlib
Home Page: http://matplotlib.org

License: BSD

Get Download Statistics

Use the pypi stat command to get download statistics for a package.

$ pypi stat numpy
Fetching statistics for 'http://pypi.python.org/pypi/numpy'. . .

Download statistics for numpy
=============================

Downloads by version
1.0     06/12/02 [ 1,904     ] *
1.3.0   09/04/06 [ 34,900    ] **
1.4.1   10/04/24 [ 17,977    ] *
1.5.0   10/09/15 [ 23,462    ] **
1.5.1   10/11/18 [ 49,311    ] ***
1.6.0   11/05/14 [ 39,431    ] **
1.6.1   11/07/24 [ 168,287   ] ********
1.6.2   12/05/20 [ 374,288   ] ******************
1.7.0   13/02/12 [ 147,759   ] *******
1.7.1   13/04/07 [ 1,006,008 ] **********************************************
1.8.0   13/10/30 [ 513,208   ] ************************
1.7.2   13/12/31 [ 2,974     ] *
1.8.1   14/03/26 [ 356,674   ] *****************

Min downloads:          1,904 (1.0)
Max downloads:      1,006,008 (1.7.1)
Avg downloads:        210,475
Total downloads:    2,736,183

Last day:           3,901
Last week:         44,842
Last month:       182,480

Browse to a Package’s PyPI or homepage

Use pypi browse to open a package’s PyPI url in your browser.

$ pypi browse textblob

You can also go to a package’s homepage.

$ pypi browse textblob --homepage

Search For Packages

Use pypi search to search for PyPI packages.

$ pypi search 'requests oauth'
Search results for "requests oauth"
suds_requests
oauth
requests
requests-oauthlib
requests-foauth
requests-oauth
requests-oauth2
wsgioauth
pmr2.oauth
django-oauth-plus

More

To get help or list available commands:

$ pypi --help

You can also get help with subcommands:

$ pypi stat --help

License

MIT licensed. See the bundled LICENSE file for more details.

Changelog

0.2.1 (2014-06-12)

  • Fix bug that caused a crash in search. Thanks Christian Pedersen for reporting.

0.2.0 (2014-06-09)

  • Add --web option to search command.

  • Fix bug with locating packages with an underscore character.

  • Add license, maintainer, and documentation info to the info command.

0.1.0 (2014-06-08)

  • First release.

  • Supports stat, browse, and search, and info commands.

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

pypi-cli-0.2.1.tar.gz (9.4 kB view details)

Uploaded Source

File details

Details for the file pypi-cli-0.2.1.tar.gz.

File metadata

  • Download URL: pypi-cli-0.2.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pypi-cli-0.2.1.tar.gz
Algorithm Hash digest
SHA256 90e83288156828dec156aca1fad38beb94dbdae72509df49d40852e16d52f36a
MD5 3c06781dafd3210aeb220daf8e0c9b47
BLAKE2b-256 4318c8f81564c3a541f06159b57965ec066327ac65155815d2081171469652d8

See more details on using hashes here.

Provenance

Supported by

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