forked from lowks/pythonpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Russell91 edited this page Jun 13, 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]
[evaluation]
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)
--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.