Skip to content

Instantly share code, notes, and snippets.

@Mulperi
Created January 12, 2022 09:41
Show Gist options
  • Save Mulperi/6abdfe9bec3f1999afa934b3d1a5cab9 to your computer and use it in GitHub Desktop.
Save Mulperi/6abdfe9bec3f1999afa934b3d1a5cab9 to your computer and use it in GitHub Desktop.
Get license metadata from installed python package
from importlib.metadata import metadata
print(metadata("flask-cors")["License"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment