Skip to content

Instantly share code, notes, and snippets.

# _______________________
# Just a simple script i use for generating a requirements.txt file per python project..
# _______________________
#Selecting a Python file through a GUI dialog.
#Parsing all imports, including those from custom modules.
#Excluding standard library modules and custom project modules.
#Including only third-party packages with their installed versions.
#Handling existing requirements.txt files by creating backups with incremented suffixes.