Package osh :: Package command :: Module py
[frames] | no frames]

Module py

source code

py PYTHON_CODE

PYTHON_CODE is executed, and any variables defined are available to subsequent commands in the same command line.

Example:

   osh py 'a = 123; b = 456' ^ f '(a, b)' $

This command generates the output '(123, 456)'.

In addition to executing the specified code, input objects are passed to the output stream.

Functions
 
py(python_code)
python_code is executed.
source code
Function Details

py(python_code)

source code 

python_code is executed. Any symbols defined by the execution of this code are available to subsequent osh commands. Input objects are passed to the output stream.