Created
October 18, 2023 09:57
-
-
Save romanbsd/7901c3d53e2345c2d73c15a554b58d72 to your computer and use it in GitHub Desktop.
List preinstalled packages on AWS lambda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pkg_resources import working_set | |
def lambda_handler(event, context): | |
print(*(f'{m.key}~={m.version}' for m in sorted(working_set, key=lambda x: x.key)), sep='\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment