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

positional arguments:
  evaluation

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 CMD                run code before expression
  --i, --ignore_exceptions
  --si SPLIT_INPUT, --split_input SPLIT_INPUT
                        pre-process each row with re.split(delimiter)
  --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