django-click icon indicating copy to clipboard operation
django-click copied to clipboard

Typer Integration

Open Benoss opened this issue 3 years ago • 4 comments

I am usually using Typer on top of Click for command line. This gives a nice way to use Type hints to define variables. https://typer.tiangolo.com

How complex do you think it would be to have a Typer adopter for django-click?

Benoss avatar Oct 10 '21 01:10 Benoss

I think there was also some chatter on Twitter about possibly adding Rich support. I stumbled on the rich-click project and I noticed that it adds both rich library support to click as well as they sneak in support for typer.

I wonder if this would help open the door to optionally add both to the project?

https://github.com/ewels/rich-click#typer-support

jefftriplett avatar May 25 '22 18:05 jefftriplett

Yeah I think that would be awesome 2 birds one stone.

Benoss avatar May 31 '22 02:05 Benoss

Adding both would be fantastic, as long as they don't become requirements and are optional. Are you interested in working on a PR, @Benoss? Thanks for being in touch!

FlipperPA avatar Jul 01 '22 13:07 FlipperPA

I had a quick look and it is a bit more complicated that what I thought to do the integration and could not pull it off yesterday I won't be able to work on a PR in the next future as I am going to travel for a few months :)

Benoss avatar Jul 04 '22 23:07 Benoss