Package: pnu-pipinfo
InstallationOnce you have installedPythonand its packages managerpip,
depending on if you want only this tool, the full set of PNU tools, or PNU plus a selection of additional third-parties tools, use one of these commands:pip install pnu-pipinfo
pip install PNU
pip install pytnixPIPINFO(1)NAMEpipinfo - Alternative tool for listing Python packagesSYNOPSISpipinfo[-l|--check-latest]
[-v|--check-vulns]
[-c|--no-color]
[-p|--no-progress]
[-i|--info]
[-S|--system]
[-U|--user]
[-I|--issues]
[-O|--outdated]
[-L|--latest|--uptodate]
[-V|--vulnerable]
[-H|--healthy|--sane]
[-N|--not-required]
[-R|--required]
[--debug]
[--help|-?]
[--version]
[--]
[directory ...]DESCRIPTIONThepipinfoutility provides an alternative to the "pip list", "pip list --outdated", "pip show" and "pip-audit" commands.It shows all the available packages in the Python PATH (not just the latest version) or given directories (even for different Python versions), differenciates user and system-wide packages (user packages are written in bright style), show duplicate packages (name in yellow foreground, including user versions shadowing system ones), shows each package summary (avoiding the use of "pip show" to discover what a package is about), and prints the count of installed packages.With the-l|--check-latestoption, it will also use a Python Index Package web service to check for the latest versions available, using a simple color (version in yellow foreground) or visual scheme to show outdated packages and count them.With the-v|--check-vulnsoption, it will also use another Python Index Package web service to check for known vulnerabilities in your packages versions, using a simple color (version in red background) or visual scheme to show vulnerable packages and count them.The color or visual scheme should be enough to tell you to upgrade the indicated packages, however you can print additional details about new versions available and vulnerabilities with the-i|--infooption.You can disable the color output with the-c|--no-coloroption, and the progress meter with the-p|--no-progressoption.Finally you can restrict the list to the user or system packages, outdated or up-to-date packages, vulnerable or sane packages, required or not packages with the options in upper case.The most useful one is probably the-I|--issuesoption which will select the outdated or vulnerable packages only.OPTIONSOptionsUse-l|--check-latestCheck latest versions-v|--check-vulnsCheck vulnerabilities-c|--no-colorToggle off color output-p|--no-progressToggle off progress meter-i|--infoPrint detailed info on versions & vulnerabilities-S|--systemSelect only system packages-U|--userSelect only user packages-L|--latest|--uptodateSelect only latest packages (implies -l)-O|--outdatedSelect only outdated packages (implies -l)-H|--healthy|--saneSelect only healthy packages (implies -v)-V|--vulnerableSelect only vulnerable packages (implies -v)-R|--requiredSelect only required packages-N|--not-requiredSelect only not required packages-I|--issuesSelect all packages with issues (-O & -V)--debugEnable debug mode--help|-?Print usage and a short help message and exit--versionPrint version and exit--Options processing terminatorENVIRONMENTThePIPINFO_DEBUGenvironment variable can be set to any value to enable debug mode.
It's mostly used to display and debug the package requirements read from the Python packages metadata files.TheLOCALAPPDATAandTMPenvironment variables under Windows, andHOME,TMPDIRandTMPenvironment variables
under other operating systems can influence the caching directory used.FILESThepipinfoutility will attempt to maintain a caching directory for the web services it uses, where the individual files will be re-used within the next 24 hours.This directory will be located in one of the following places:Windows:%LOCALAPPDATA%\cache\pipinfo%TMP%\cache\pipinfoUnix:${HOME}/.cache/pipinfo${TMPDIR}/.cache/pipinfo${TMP}/.cache/pipinfoEXIT STATUSThepipinfoutility exits 0 on success, and >0 if an error occurs.EXAMPLESUse the following command to print a package listing after checking for the existence of new versions or vulnerabilities:pipinfo -lvUse the following command to restrict the list to outdated and vulnerable packages with details but no progress meter:pipinfo -IipSEE ALSOpip,pip-auditSTANDARDSThepipinfoutility is not a standard UNIX command.It tries to follow thePEP 8style guide forPythoncode.PORTABILITYTested OK under Windows.HISTORYThis implementation was made for thePNU project,
both for my personal convenience and also to investigate some pip issues with thepip list --outdatedoption.LICENSEIt is available under the3-clause BSD license.AUTHORSHubert Tournier