Make shell scripts from python functions
Project description
Make a shell script from a python function. Generates an argument parser for the function using argparse by inspecting the function arguments.
#! /usr/bin/python
from simplescript import simplescript
@simplescript
def myscript(a_flag=False, a_string="default"):
"""An example script"""
if a_flag:
print a_string
Install using pip:
pip install simplescript
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simplescript-0.1.tar.gz
(2.4 kB
view hashes)