-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removal of click dependency #234
Comments
I've gotten used to click in other packages (easier than argparse) so I have a slight preference for relying on it. That said, is there something that makes you prefer a click-less approach? |
I have nothing against But here there's only a single command, with a few options. It would easily translate to |
In the light of supply-chain attacks on Python dependencies, simplifying the dependency graph is generally a good thing. But as for Click, I tend to see the benefits outweigh the costs. CLI interfaces with Click (or Typer, which is an even nicer wrapper around Click) are so much more readable than argparse stuff. And a panflute-based project will have additional dependencies in a requirements.txt or environment.yaml anyway. So I would argue for a readable and maintainable CLI implementation and hence for keeping the dependency. But no strong opinion either. |
Hi,
The
click
library is used inpanflute
, but only here:panflute/panflute/autofilter.py
Lines 166 to 177 in dd8b03a
This can be easily replaced with standard lib's
argparse
, and thenclick
could be removed. It would be one less dependency.Do you agree with a PR proposing this?
The text was updated successfully, but these errors were encountered: