Common Linux commands implemented in Python.
My idea is to create simple Python methods that emulate the behavior of some
common Linux command line utlities. I started with grep
.
Sometimes I still find myself writing shell scripts. I guess it's because they seem, at that moment, more easy to write than to write Python code. Part of the reason for this is how amazingly well-designed these command-line utilities are. Another part is that Python code often has some setup needed before your code is actually ready.
This library aims to:
- minimize the amount of setup needed to invoke shell-script-like behavior.
- provide Pythonic interfaces equivalent to the command line utilities, to combine the clarity and portability of Python together with the succintness of shell scripting.
- provide a drop-in replacement command-line interface to those utilities, so that shell scripts may easily be ported to other operating systems, namely Windows.
Requirements:
regex
(for-E
support)