pypyp - Run Python at the Shell

1.3.0 · active · verified Thu Apr 09

pypyp (Python at Your Prompt) is a command-line utility that allows users to easily execute Python code directly from their shell, often leveraging shell piping for data manipulation. It's designed to be a magical yet never mysterious tool for quick data processing and scripting, similar to `awk` or `sed` but with Python's full power. The current version is 1.3.0, and releases are generally made as features or fixes are needed.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates pypyp's core functionality: taking piped input and applying a Python expression to each line. The `x` variable holds the current line of input. The output will be 'HELLO WORLD'.

echo "hello world" | pypyp 'x.upper()'

view raw JSON →