Skip to main content

CLI tool to find package info on PyPI

Project description

whatsonpypi

https://img.shields.io/pypi/v/whatsonpypi.svg https://img.shields.io/travis/viseshrp/whatsonpypi.svg Documentation Status Downloads

CLI tool to find package info on PyPI

Installation

pip install -U whatsonpypi

Requirements

  1. Python 2.7+

Features

  • Find information on a package on PyPI

    Examples:

    $ whatsonpypi django
    NAME
        Django
    LATEST VERSION
        2.1.5
    SUMMARY
        A high-level Python Web framework that encourages rapid development and clean, pragmatic design.
    PACKAGE URL
        https://pypi.org/project/Django/
    AUTHOR
        Django Software Foundation
    LATEST RELEASES
        2.2a1, 2.1rc1, 2.1b1, 2.1a1, 2.1.5
  • For more information..

    Examples:

    $ whatsonpypi django --more
    ...
  • Version specific information..

    Examples:

    $ whatsonpypi django==2.1.4 --more
    ...
  • Launch documentation URL of project in a browser tab

    Examples:

    $ whatsonpypi django --docs
  • Add packages to your requirements files.

    Examples:

    $ whatsonpypi django --add

    By default, it searches for files with names matching requirements*.txt in the current working directory and adds the dependency to the end of the file.

    You can change the filename pattern to search for. The pattern may contain simple shell-style wildcards.

    $ whatsonpypi django --add --req-pattern "*.txt"

    If there’s more than one file, you will see a prompt allowing you to select the files that should be modified.

    If you want the dependency to be added to a specific line, mention a comment #wopp on its own line, which will be replaced with the dependency:

    Example:

    Do this in your requirements.txt:

    # Django
    django==2.1.5
    # testing
    pytest==4.1.1
    #wopp

    Then running this:

    $ whatsonpypi pytest-runner --add

    will produce this:

    # Django
    django==2.1.5
    # testing
    pytest==4.1.1
    pytest-runner==4.2

    Existing dependencies will be replaced with newer versions. Dependency version by default is the latest unless specified explicitly like:

    $ whatsonpypi pytest-runner==4.1 --add

    Optionally, directory to search for requirement files can be specified with --req-dir. Both absolute and relative paths are allowed. Must be a directory.

    $ whatsonpypi pytest-runner==4.1 --add --req-dir /Users/Me/Documents/GitHub/project/requirements

    Default value (if not provided) is the directory where the command is run (cwd).

See all options with:

$ whatsonpypi --help

Credits

History

0.2.3 (2019-01-26)

  • add –req-pattern to allow specifying search pattern for requirements files

  • raise Error when no requirements files are found

0.2.2 (2019-01-23)

  • Fix empty dependencies display

0.2.1 (2019-01-23)

  • Small fixes

0.2.0 (2019-01-22)

  • Add -a/–add to enable adding packages to requirement files.

  • Added -d/–docs to launch docs URL in browser

  • Allow version specific querying

0.1.2 (2019-01-20)

  • Display more package info

  • added –more/-m for even more info

0.1.1 (2019-01-02)

  • First release on PyPI.

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

whatsonpypi-0.2.3.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

whatsonpypi-0.2.3-py2.py3-none-any.whl (13.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file whatsonpypi-0.2.3.tar.gz.

File metadata

  • Download URL: whatsonpypi-0.2.3.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for whatsonpypi-0.2.3.tar.gz
Algorithm Hash digest
SHA256 fa77075bd6c9973b83d9e939437b6e56a9843209eb1175e535fb84408b1900b1
MD5 698591d6fef4d4669a9c0259b3ca4c7f
BLAKE2b-256 33502edf15468700edd508c38a28e8a12f78274e9967f3523fa8c1680eea1516

See more details on using hashes here.

File details

Details for the file whatsonpypi-0.2.3-py2.py3-none-any.whl.

File metadata

  • Download URL: whatsonpypi-0.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for whatsonpypi-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0373e7b5e8df94d409e9080132740cb7bf202498a0c965f831a903ffb690b1ad
MD5 8c6113dc97f2d861216f45b6ab10fdb8
BLAKE2b-256 1f31e65d6c6cacde19126c77da110c7bf8f24c534a427488e38bd3690240d74f

See more details on using hashes here.

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