Skip to content
Russell91 edited this page Jun 14, 2014 · 17 revisions
$ py -h
usage: pythonpy [-h] [-x] [-fx] [-l] [-c PRE_CMD] [-C POST_CMD] [--i]
                [--si SPLIT_INPUT] [--so SPLIT_OUTPUT] [--ji--json_input]
                [--jo--json_output]
                [expression]

positional arguments:
  expression

optional arguments:
  -h, --help            show this help message and exit
  -x                    treat each row as x
  -fx                   keep rows satisfying condition(x)
  -l                    treat list of stdin as l
  -c PRE_CMD            run code before expression
  -C POST_CMD           run code after expression
  --i, --ignore_exceptions
  --si SPLIT_INPUT, --split_input SPLIT_INPUT
                        pre-process each row with re.split(delimiter, row)
  --so SPLIT_OUTPUT, --split_output SPLIT_OUTPUT
                        post-process each row with delimiter.join(row)
  --ji--json_input      pre-process each row with json.loads(row)
  --jo--json_output     post-process each row with json.dumps(row)

Please check out the pages panel for more advanced features.

Clone this wiki locally