vpip.commands.list

List installed packages.

class vpip.commands.list.PackageInfo(name, version=None)

Bases: object

Package information formatter.

Usage:

print(PackageInfo("my_package", "0.1.0"))
Parameters:
  • name (str) – Package name.

  • version (str) – Package version. If none then it shows (not installed) when formatted.

check_update()

Check update and setup update_result.

name
update_result

Update result. This would be set to the return value of vpip.pypi.check_update().

version
vpip.commands.list.iter_global_packages()

Iterate through globally installed packages.

Return type:

Iterator[PackageInfo]

vpip.commands.list.print_global_packages(check_outdated=False)
vpip.commands.list.print_local_packages(check_outdated=False)
vpip.commands.list.run(ns)