Thanks should support multiple ways to specify packages to check
phildini opened this issue · 2 comments
phildini commented
From discussion in #pypa on freenode:
It would be great if thanks <package name>
just worked, even on packages that weren't installed locally.
tomdottom commented
@phildini were you thinking of following the pip
cli api.
thanks -r requirements.txt
thanks package-name
thanks setup.py
???
phildini commented
So, here's my vision for the interface. All of these are listed in "order in which I would like to see them implemented"
thanks
with no arguments - looks at the results ofpip list
, fetches the funding data for everything it finds.thanks -r requirements.txt
- looks only at the requirements.txt, fetches the funding data for what's listed therethanks {package_name}
- fetches the funding data of a single package.
Note, when I say "fetches" here, I mean "should check locally first and then try to optionally hit PyPI"
Deep future:
thanks -p Pipfile
- does whatthanks -r requirements.txt
does, but on a Pipfilethanks -s setup.py
- same, but on a setup.py