4 ms·
Does anybody know a project doing something similar but in Python?
by mrbungie 5y ago
Does anybody know a project doing something similar but in Python?
- deleted 5y ago[deleted]
- kasbah 5y ago`sh` might be what you are looking for. https://amoffat.github.io/sh/ https://amoffat.github.io/sh/
- rjmorris 5y agoI'm pretty sure sh just runs the commands in a subprocess using the shell, so it isn't like shelljs at all. From the linked page: "Note that these aren’t Python functions, these are running the binary commands on your system by dynamically resolving your $PATH, much like Bash does, and then wrapping the binary in a function. In this way, all the programs on your system are easily available to you from within Python."
- zbentley 5y agohttps://pypi.org/project/plumbum/ https://pypi.org/project/plumbum/
- sime2009 5y agoPython's built in `shutil` package generally does a good job of covering the kinds of tasks you would use shelljs for.