subb
python-obj-system
subb | python-obj-system | |
---|---|---|
2 | 3 | |
2 | 62 | |
- | - | |
0.0 | 2.1 | |
about 2 years ago | 9 months ago | |
Python | Python | |
MIT License | MIT License |
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
python-obj-system
-
95% of problems once solved by metaclasses can be solved by __init_subclass__
i have a text on the python object system and metaclasss here https://github.com/MoserMichael/python-obj-system/blob/maste... as part of my free python course https://github.com/MoserMichael/python-obj-system/blob/maste...
-
tqdm (Python)
it may be easy to get going with python, but it takes a non trivial amount of time to understand, what is going on. I have a advanced python3 course https://github.com/MoserMichael/python-obj-system that explains some of the more advanced concepts.
-
advanced Python course
The course material is released under the MIT license, The course is written in the literate programming style. A python program exists for each lesson, it is run, and it's output is the markdown text that makes up the text of the lesson. The code and output of each python snippet is rendered as part of the lesson. This gives me some confidence in the presented material. The literate programming package is also presented in the github repository of the course.
What are some alternatives?
Task - A task runner / simpler Make alternative written in Go
pqdm - Comfortable parallel TQDM using concurrent.futures
Bash-web-server - A purely bash web server, no socat, netcat, etc...
rich - Rich is a Python library for rich text and beautiful formatting in the terminal.
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.
pyrrole - Role system for Python3
chime - 🎵 Python sound notifications made easy
sh - Python process launching
bashttpd - A web server written in bash
oracle-object-mapping