Writing a Python shell script? Use this.
Project description
Use with Python 3.
Need to write a python script that will be run from the command line? Something you can call with –help? Something that reads, copies, deletes, or otherwise manipulates files? Something that invokes other programs via the shell? If so, this module is for you!
A simple import script statement can provide your code with convenient command line parsing, à la carte --help documentation, useful path operations, shell command invocation with optional pipe redirection, and early run-time termination with exit status control. Read on for more.