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
Metadata
Release files for simplescript 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simplescript-0.2.tar.gz | 2.5 kB | Details |
Release files / simplescript-0.2.tar.gz
| Download URL | simplescript-0.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71b33d24fa82ee8a16ea45fd12218af69db0dddf44e991388fe0f7170cf54c17
|
|
BLAKE2b-256 checksum How to use checksums |
6867adbf20fdc0356a1ff40d819a0186d6770cdbf973f50e045a6d298c27961e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |