Bash2py Examples

Examples are presented below of output produced by bash2py when presented with six open source bash projects, addressing a variety of applications.

The examples provide the input bash script, the translated python output generated by bash2py, and a comparative side by side presentation in html.
Examples are best viewed using Chrome, since Internet Explorer may present unix style newline characters as absent within the browser, while Firefox may insist on downloading these files, rather than presenting them in the browser.

For convenience these examples can also be downloaded as a zip file.

ProjectBash ScriptPython OutputComparison
assert assert.sh assert.sh.py assert.sh.html
bash2048 bash2048.sh bash2038.sh.py bash2048.sh.html
bashmarks bashmarks.sh bashmarks.sh.py bashmarks.sh.html
bashtime bashtime_codemath.sh bashtime_codemath.sh.py bashtime_codemath.sh.html
bashtime_enum.sh bashtime_enum.sh.py bashtime_enum.sh.html
bashtime_lists.sh bashtime_lists.sh.py bashtime_lists.sh.html
bashtime.sh bashtime.sh.py bashtime.sh.html
bashttpd bashttpd.sh bashttpd.sh.py bashttpd.sh.html
JSON JSON.sh JSON.sh.py JSON.sh.html