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.

Source Distribution

simplescript-0.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file simplescript-0.2.tar.gz.

File metadata

  • Download URL: simplescript-0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for simplescript-0.2.tar.gz
Algorithm Hash digest
SHA256 71b33d24fa82ee8a16ea45fd12218af69db0dddf44e991388fe0f7170cf54c17
MD5 3df090939d3b5b73080063147d8bfb47
BLAKE2b-256 6867adbf20fdc0356a1ff40d819a0186d6770cdbf973f50e045a6d298c27961e

See more details on using hashes here.

Provenance

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