Skip to main content

Make shell scripts from python functions

Project description

  • Latest Version

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.

Files for simplescript, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size simplescript-0.2.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page