3 ms·
Shouldn't this be qualified with "argparse-based"? Argparse is good for simple stuff but there are many Click based CLI's and a lot of popular CLI libraries bu
by SOLAR_FIELDS 3y ago
Shouldn't this be qualified with "argparse-based"?
Argparse is good for simple stuff but there are many Click based CLI's and a lot of popular CLI libraries build on top of Click. There are also other Python CLI tools that aren't built on argparse or Click, though I will say that these two are probably the most popular ones.
Is this confirmed to work with Click? I only see references to argparse. I would go so far to say, if the answer is no, that "almost any" is a flat out lie, and a much more accurate title would be "Turn almost any argparse-based Python command line program into a full GUI application".
Also, the last substantial commit was over two years ago. This isn't itself a bad thing, but given the open issue count does not really signal confidence in the project.
Otherwise it is a cool project. I would like to see more of this - it's one of those neat force multipliers, as referenced in the README, that some enterprising person could implement as a CLI and then share their automation for the rest of the nontechnical office in an easy way. Kind of like how Access did the same thing for DB's. Like Access, you would butt up against limitations once you started to introduce some level of size or complexity, but it could be "good enough" for a lot of small office use cases.
- pjacotg 3y agoI used it for exactly this in my previous role. I automated a lot of tasks and built tools for my previous team. Most of them weren't Python programmers so I used gooey to create simple GUI's on top of my scripts. It worked really well.
- gverrilla 3y agoMind you give some examples? curious.
- neuromanser 3y agoOne does not need to be a $lang programmer to use a CLI tool written in $lang.
- tourist2d 3y ago[flagged]
- paulddraper 3y agoIt does? Could you explain why you think that?
- selcuka 3y agoSee the author's comment: https://news.ycombinator.com/item?id=38587791 https://news.ycombinator.com/item?id=38587791
- SOLAR_FIELDS 3y agoThe author’s comment actually confirms that it doesn’t currently support anything else other than argparse though. The author says they wrote it to be generic enough to extend to other libraries easily, which is great, but that is not the same at all as currently supporting said libraries. They provided a link that said it supports any cli, but when you follow the link, the instructions tell you to implement an argparse compatible wrapper for your cli in Python, which of course, is supporting argparse
- selcuka 3y agoSure, I was talking about the workaround mentioned here: > You can also invoke any arbitrary executable [https://chriskiehl.com/article/gooey-as-a-universal-frontend https://chriskiehl.com/article/gooey-as-a-universal-frontend], not just python, which is pretty handy. Rhetorics aside, you can use Gooey for any CLI tool using a small Python glue (pardon the pun) code, so it was not a flat out lie.
- SOLAR_FIELDS 3y agoI know we are in semantics land now but most people would probably say that shelling out to another process doesn’t really constitute an integration. Put another way, you could just say that you could easily turn any CLI into a simple Python CLI with only a few lines of code with argparse itself, and that argparse supports any other CLI by just wrapping it, removing mentioning the Gooey part entirely. You’re essentially describing just the benefits and drawbacks of Python’s subprocess and argparse libraries at this point and not really saying anything about Gooey aside from the fact that it is argparse compatible. In other words: “Hey look at this cool thing argparse can do, and because Gooey is basically api compatible with argparse, it can do it too!” And don’t get me wrong, I think Python’s expressiveness with the argparse library and in general its ability to make CLI’s in very few lines of code is great. But really the magic is argparse and Python in that regard.
- jonnycomputer 3y agoI'm curious about the deficiencies you see in argparse... my bias is to minimize 3rd party dependencies ...
- jonnycomputer 3y agoI was genuinely seeking feedback. I use argparse regularly. I have found it somewhat difficult to use when creating nested subparsers. That Click is part of the The Pallets Project gives me more confidence in it being maintained indefinitely, but ...
- LtWorf 3y agoWhat can't you do with argparse exactly?