5 ms·
Xonsh is how to do this.
by fnj 9y ago
Xonsh is how to do this.
- noobiemcfoob 9y agoXonsh is a shell that integrates Python at the command line. This is a library to make calls to the command line.
- fnj 9y agoAnd your point is??
- gerdesj 9y agoAt the risk of simply putting words into noobiemcfoob's mouth: "Xonsh is " NOT " how to do this."
- fnj 9y agoOK. I thought this would be so obvious that people would see it. Sultan says "Sultan was created to help with scripts that we create with Bash, that tend to get complex." If one has an open mind, one should be asking "why would I use bash for this at all, when there exists a far superior command shell, xonsh, which incorporates all of bash's capability, with all of python, in one piece?" Why are we trying to interface with bash to run commands from python in the first place? Cut out the middleman, bash, which is just a nuisance in the way.
- michaelmrose 9y agoYou don't need to interface with bash necessarily you need to interface with binaries on the system like apt for example
- fnj 9y agoWhich is exactly what xonsh does.
- jjuel 9y agoThe point would be that Xonsh is a Python command line. This is a Python library for running commands. So they definitely have two separate use cases.