Re:Ffsend – Share Files from the CLI: A Firefox Send Client ...
by the_mitsuhiko on Saturday December 28, 2019 @07:15AM
(#21898503)
Conveys the ecosystem. When I see “CLI tool written in Python” vs “CLI tool written in Rust/Go” I pick the latter because Python’s packaging situation for command line tools is beyond awful.
[ Parent
| on HN ]
Re:Ffsend – Share Files from the CLI: A Firefox Send Client ...
by more-coffee on Saturday December 28, 2019 @08:08AM
(#21898679)
By packaging situation do you mean the user-side of things, i.e. how to install stuff separately of each other? For that I've had good experience using https://pypi.org/project/pipx to install several cli tools without conflicts. Uninstalling them has also been a breeze.
Re:Ffsend – Share Files from the CLI: A Firefox Send Client ...
by the_mitsuhiko on Saturday December 28, 2019 @08:26AM
(#21898764)
I wrote a tool called pipsi which I believe has influenced pipx but despite the existence of such tools I have no idea these days how to install python packages any more. Ir has become only more confusing and complex. Both for cli tools as well as libraries.
Re:Ffsend – Share Files from the CLI: A Firefox Send Client ...
by j88439h84 on Saturday December 28, 2019 @01:23PM
(#21900635)
Pipx is the replacement for pipsi. It's good for installing cli tools.
For managing project dependencies, Poetry is the current best. It means I dont have to interact with virtualenv or pip or setuptools or pip-tools or manifest.in.
Re:Ffsend – Share Files from the CLI: A Firefox Send Client ...
by kissgyorgy on Saturday December 28, 2019 @08:31AM
(#21898776)
This is very surprising to read. When I read something like this from others, I was always arguing that "it's not anymore", but I'm absolutely sure you know better than me. Would you mind elaborating actual problems or writing a blog post about it? I am VERY curious about your experience and opinion in this topic!
Re:Ffsend – Share Files from the CLI: A Firefox Send Client ...
by simias on Saturday December 28, 2019 @10:34AM
(#21899380)
Personally it's more about familiarity, I dev Rust so I know that I have all the prerequisites and setting this up should be trivial, meanwhile I don't do a lot of Python work so getting that to work might be a bigger commitment.
I don't do a lot of Go either but at least Go generates freestanding binaries so if I install it in precompiled form I know that it will be fairly frictionless and won't rely on half a billion dependencies (which may or may not conflict with something else). I use a bunch of Go programs regularly (like docker or Arch's yay package manager) and it never gets on in the way.
On the other hand if it's an npm package I don't even think about it.