Bash-web-server
subb
Bash-web-server | subb | |
---|---|---|
10 | 2 | |
923 | 2 | |
- | - | |
6.9 | 0.0 | |
2 months ago | about 2 years ago | |
Shell | 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.
Bash-web-server
- Pure Bash Web Server
-
A simple web server written in Awk
Actually, bash has now a loadable builtin to listen on tcp socket. I wrote a script and the patch. https://github.com/dzove855/Bash-web-server
The patch is now included in bash 5.2
- [DISCUSSION] What if BASH could be used as a web server interpreter?
- Bash-Web-Server
- Show HN: A (very) simple web server in Bash
-
Bashing the Bash – Replacing Shell Scripts with Python
> For example, there is an implementation of an HTTP daemon written purely in bash[2]. Once again-- terrible idea, but great execution.
It's not pure bash, as it relies on netcat or socat plus some external programs (ls, tree, cat, date).
There does exist a pure bash httpd though. It relies on a loadable builtin (from the bash tree though not built by default).
https://github.com/dzove855/Bash-web-server
- A bash web server, no socat, netcat, etc.. Juste loadable builtins
- J’espère que le fisc regarde Instagram!
- A purely bash web server, no socat, netcat, etc...
- Show HN: A pure bash web server. No netcat, socat, etc.
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
What are some alternatives?
bashttpd - A web server written in bash
Task - A task runner / simpler Make alternative written in Go
bash-server - A http server in bash
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.
sedmario - NES Super Mario Bros level 1 written in pure sed!
chime - 🎵 Python sound notifications made easy
xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell.
sh - Python process launching
yosh
awk-webserver - A simple webserver, written in GNU awk, that supports directory listing and download of file from the directory where it is launched
tqdm.cpp - C++ port of tqdm