subb
xonsh
subb | xonsh | |
---|---|---|
2 | 112 | |
2 | 8,051 | |
- | 1.3% | |
0.0 | 8.9 | |
about 2 years ago | 1 day ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
subb
-
Bashing the Bash – Replacing Shell Scripts with Python
I wrote this to simplify just that for my own tools; the subprocess module that comes with the batteries has a very general interface, i think that it is a bit complex for a quick script.
https://github.com/MoserMichael/subb
https://pypi.org/project/subb/
Python doesn't have the problem of shell scripting language, it doesn't get impractical, as the program is getting more complex. In bash you have arrays, and even maps, but these aren't pretty. Also the shell scripting language is being evaluated by an parse tree/AST interpreter, that's significantly slower than even python, in it's byte code interpreted form.
My objective was to get an abstraction, for a one line process run and extraction of the result, similar to what we had in Perl5 with the system library function. https://perldoc.perl.org/functions/system
Also the shell is impractical, when it comes to slightly more complex programs. There is a limit on what you can do with pipes. Maybe that's the reason why perl is that flexible, as they tried to bridge both realms: Perl had to be useful as a replacement for the quick shell like script, and to be useful as a general purpose programming language.
-
tqdm (Python)
i have a subprocess wrapper, might also be of help: https://github.com/MoserMichael/subb
xonsh
-
This Week In Python
xonsh – Python-powered, cross-platform, Unix-gazing shell
- FLaNK Stack Weekly 19 Feb 2024
- Xonsh is a Python powered shell
-
Xonsh: Python-powered, cross-platform, Unix-gazing shell
You need to downgrade ptk version. Look here - https://github.com/xonsh/xonsh/issues/5241#issuecomment-1961...
-
Google ZX – A tool for writing better scripts
Friends, I'm not saying that tools like zx are not good. I do like to write some scripts using js/ts. I believe pythoners prefer https://xon.sh/ . Perl is also attractive and interesting. Fish is friendly.
However, I still believe that posix-shell has its own advantages. The balance among size, code length, and expressiveness. I think the only possible competitors are tcl and perl, maybe lua.
- Xonsh – A Python-Powered Shell
- Xonsh
-
Shh: Simple Shell Scripting from Haskell
Those of you who use (or used) this as your shell: care to share your experience?
It seems a lot less full-featured than https://xon.sh/, but maybe you don't need a lot of bells and whistles for regular usage. I mostly run build, execute, and install commands.
I'm somewhat enticed at the possibility of being able to wrap common executables into forms that are typed (like nushell or elvish) and manipulate them in a way that leverages the type checker.
-
Marcel the Shell
In that case, is it even more similar to xonsh?
https://xon.sh/
- Shshsh is a bridge connects Python and shell
What are some alternatives?
Task - A task runner / simpler Make alternative written in Go
nushell - A new type of shell
Bash-web-server - A purely bash web server, no socat, netcat, etc...
fish-shell - The user-friendly command line shell.
textual - The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
ipython - Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
chime - 🎵 Python sound notifications made easy
oh-my-bash - A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
sh - Python process launching
PowerShell - PowerShell for every system!
bashttpd - A web server written in bash
zx - A tool for writing better scripts