{"library":"pip-licenses-lib","title":"pip-licenses-lib","description":"A library to retrieve the software license list of Python packages installed with pip. Provides programmatic access to license metadata, with support for PEP 639, PEP 770, and SBOM files. Current version 1.1.0, requires Python >=3.10, released approximately every few months.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pip-licenses-lib"],"cli":null},"imports":["from pip_licenses_lib import get_packages","from pip_licenses_lib.models import Package"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pip_licenses_lib import get_packages\n\npackages = get_packages()\nfor pkg in packages[:5]:\n    print(pkg.name, pkg.license_expression, pkg.version)","lang":"python","description":"Retrieve license info for all installed packages and print first 5 (name, license expression, version).","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}