Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page