subb | tqdm.cpp | |
---|---|---|
2 | 1 | |
2 | 288 | |
- | 2.1% | |
0.0 | 0.0 | |
about 2 years ago | 5 months ago | |
Python | C++ | |
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
tqdm.cpp
What are some alternatives?
Task - A task runner / simpler Make alternative written in Go
rich - Rich is a Python library for rich text and beautiful formatting in the terminal.
Bash-web-server - A purely bash web server, no socat, netcat, etc...
pqdm - Comfortable parallel TQDM using concurrent.futures
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.
typer - Typer, build great CLIs. Easy to code. Based on Python type hints.
chime - 🎵 Python sound notifications made easy
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
sh - Python process launching
bashttpd - A web server written in bash
tqdm-ruby - Add a progress bar to your loops in a second. (A port of Python's tqdm.)