Skip to content
onelinerers' Python, which works like AWK
Python Roff Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
EXAMPLES.md
LICENSE
Makefile
README.md
opy
opy.1
test

README.md

opy: onelinerers' Python

a Python wrapper that works like AWK or rb command

Build Status

example of use

$ seq 3 | opy '[math.sin(F1)]'
0.8414709848078965
0.9092974268256817
0.1411200080598672

install

make

The opy file and its manual are copied to /usr/local/bin/ and /usr/local/share/man/man1/ respectively with the following command.

$ sudo make install

homebrew

$ brew tap ryuichiueda/oneliner-python
$ brew install oneliner-python

options

See EXAMPLES.md

  • -b: buffer the standard output
  • -c: read data as CSVs
  • -C: output data with a CSV format
  • -s: treat numbers from input data as strings
  • -i: separators change input field separators
  • -I: separators change input field separators with a regular expression
  • -m: modules import modules
  • -o: separators change output field separators
  • -v: <variable>=<string> define a variable from a string on the shell
  • --help: show help
You can’t perform that action at this time.