module pycode.pip_helper

Inheritance diagram of pyquickhelper.pycode.pip_helper

Short summary

module pyquickhelper.pycode.pip_helper

Helpers for pip

Some links to look:

source on GitHub

Classes

class

truncated documentation

PQPipError

any exception raised by one of the following function

Functions

function

truncated documentation

get_package_info

Calls pip show to retrieve information about packages.

get_packages_list

calls pip list to retrieve the list of packages

package2dict

Extracts information from a package.

Methods

method

truncated documentation

__init__

constructor

Documentation

Helpers for pip

Some links to look:

source on GitHub

exception pyquickhelper.pycode.pip_helper.PQPipError(*l)[source][source]

Bases: Exception

any exception raised by one of the following function

source on GitHub

constructor

Parameters

l – either a string 3 strings (cmd, out, err)

source on GitHub

__init__(*l)[source][source]

constructor

Parameters

l – either a string 3 strings (cmd, out, err)

source on GitHub

pyquickhelper.pycode.pip_helper.get_package_info(name=None, start=0, end=-1)[source][source]

Calls pip show to retrieve information about packages.

Parameters
  • name – name of he packages or None to get all of them in a list

  • start – start at package n (in list return by get_packages_list)

  • end – end at package n, -1 for all

Returns

dictionary or list of dictionaries

source on GitHub

pyquickhelper.pycode.pip_helper.get_packages_list()[source][source]

calls pip list to retrieve the list of packages

source on GitHub

pyquickhelper.pycode.pip_helper.package2dict(pkg)[source][source]

Extracts information from a package.

Parameters

pkg – type pip._vendor.pkg_resources.Distribution

Returns

dictionary

source on GitHub