thanks icon indicating copy to clipboard operation
thanks copied to clipboard

Running thanks without argument could simply scan a pip freeze

Open ramnes opened this issue 6 years ago • 1 comments

Because packages often come with dependencies that are not always written in requirements files, I'd love to be able to run thanks anywhere without argument, and having it to get the packages to scan from a simple pip freeze.

Such a feature would be particularly interesting in virtualenv settings, and make thanks work in a similar fashion than feross/thanks.

PS: thank you for writing this piece of code! I definitely wanted to do it too when I saw the JS version 10 days ago, and it was actually a top priority in my spare time to-do list… but it looks like I was too slow. 😄

ramnes avatar Feb 19 '18 09:02 ramnes

Hey! Thanks for the suggestion. I 100% agree that this functionality would be great, and it's mostly there already. If you're interested in taking this on, pip.get_installed_distributions() will be your friend. Check out what's going on at:

https://github.com/phildini/thanks/blob/master/thanks/thanks.py#L29

phildini avatar Feb 21 '18 23:02 phildini