Pip Facts

pip3_packages

host.fact.pip3_packages(pip=None)

pip_packages

host.fact.pip_packages(pip=None)

Returns a dict of installed pip packages:

{
    'package_name': ['version'],
}