thanks icon indicating copy to clipboard operation
thanks copied to clipboard

Feature : How about showing links to github project - twitter profile of the author?

Open waseem18 opened this issue 6 years ago • 6 comments

If the user wants to donate he would hit the command thanks requirements.txt donate which would show links to the authors patreon pages. While thanks requirements tweet would show the authors twitter profile links using which user can tweet the author expressing his love for the library.

The same for github as well - it would show github project links which helps people star the project.

I was planning to put this up in the package that I'm building but thought of chiming in my thoughts here instead of building yet another thanks library :smile:

waseem18 avatar Feb 11 '18 17:02 waseem18

Hey! I think something like thanks tweet requirements.txt is pretty reasonable, but I'm still thinking about it.

I definitely worry about too much information or information overload, so if you have thoughts on what the output would look like that would be amazing to see.

phildini avatar Feb 11 '18 18:02 phildini

By output if you meant to say cli UI - I don't have it.

I mean to say it would similar to the output of the command thanks requirements.txt as of now.

waseem18 avatar Feb 11 '18 18:02 waseem18

I was indeed writing a small script to automatically star dependencies of a project in GitHub (heavily inspired by cargo-thanks). Right now, I have small pieces of code for fetching github repositories of the dependencies, which should be enough right now to fit in the current script (just listing the repositories and let the user manually star the ones he is interested in).

I think it could be nice to include the functionality using a simple --github flag to the script to show the links to the repositories instead the donations: not overloading the input, and offered as an alternative of "real" support (as donations are). @phildini, if this sounds good to you I can start working on a PR!

diego-vicente avatar Feb 13 '18 18:02 diego-vicente

Hey @DiegoVicen! Yes, I will happily look at a PR. There are some changes incoming that might mean the PR goes through a couple rounds, but I'd still love to have some code-thoughts on what this looks like. 😄

phildini avatar Feb 13 '18 19:02 phildini

Hey @DiegoVicen you might want to keep an eye on #7. I'm thinking of trying to pull project funding info from the setup.py, and pulling the github info from there as well seems ideal.

phildini avatar Feb 13 '18 23:02 phildini

The prototype I mentioned just parses the output of pip show <package> and hopes to find a github link (which is not the case in many big packages, like numpy for instance), so that actually sounds promising. If not, at least using both methods and try to complement each other.

diego-vicente avatar Feb 14 '18 17:02 diego-vicente