$npx skillfedfor your agent

pypyp

Easily run Python at the shell! Magical, but never mysterious.

With conditionsPyPI Software DevelopmentReleased Dec 2024108.4K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pypyp-1.3.0-py3-none-any.whl
v1.3.0 · released 2024-12-27 · Python >=3.8 · 1 runtime deps: astunparse

Yes, if you regularly write one-liners at the shell and want to avoid boilerplate imports and explicit print statements. The low install friction, permissive license, and lack of known vulnerabilities make it safe to try. The aging maintenance status (595 days since last release) is a minor concern for a stable utility, but the active repository and solid user base suggest it remains reliable for its narrow, well-defined purpose.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or above; pyp is primarily a shell command-line tool, not a library for direct Python import.
  • Low friction: pure Python wheel with a single runtime dependency (astunparse).
  • Maintenance is aging—last release was 595 days ago—but the repository remains active and unarchived with a modest user base (1528 stars).

License · maintenance · safety

permissive license (permissive) — MIT license (permissive) means you can use, modify, and redistribute pypyp with minimal restrictions, making it safe for both personal and commercial projects.

last release 2024-12-27 (595 days) · last repo commit 2026-01-04 · 1,528 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 108,435 downloads/mo, #12,558 on PyPI

Verify before relying

pip install pypyp

# In shell:
echo -e "hello\nworld" | pyp 'x.upper()'

# In Python (less common):
import subprocess
result = subprocess.run(['pyp', 'x.upper()'], input=b'hello\n', capture_output=True)
print(result.stdout.decode())
  • Whether the --explain output is guaranteed to be runnable Python or merely illustrative
  • Performance characteristics when processing very large input streams
  • Compatibility with all standard library modules beyond those explicitly mentioned
Same gist for agents: .md · .json

What it is and what it does

pyp is a command-line tool that lets you run Python code directly from the shell without boilerplate. You write a Python expression or snippet, and pyp statically analyzes it to infer what you need: it detects undefined variables like `x` (current line), `lines` (all lines), `stdin`, or `i` (loop index), automatically imports any modules you reference, and executes the code with those bindings in place. The result is printed intelligently—dicts and iterables format nicely, and the last expression prints automatically unless it's None or you explicitly call print yourself.

It's designed to replace common shell utilities: `ls | pyp 'x[:3]'` acts like cut, `cat file | pyp 'sum(map(int, lines))'` acts like awk, and `cat data.json | pyp 'json.load(stdin)[0]'` acts like jq. You can also use `--explain` to see the generated Python script before running it, chain multiple pyp invocations, or configure a custom config file (via PYP_CONFIG_PATH) to predefine functions and imports for your own use cases.

Use it for

  • Extract or transform text line-by-line: `ls | pyp 'x.upper()'` or `cat file | pyp 'x.split()[2]'`
  • Aggregate or filter input: `cat data | pyp 'sum(map(int, lines))'` or `cat words | pyp 'x if "python" in x else None'`
  • Process structured data: `curl api | pyp 'json.load(stdin)[0]["key"]'` or `cat file.csv | pyp 'len(lines)'`
  • Add line numbers or indices: `cat file | pyp 'f"{idx+1}: {x}"'`
  • Understand generated code before execution: `pyp --explain 'complex_expression'` to inspect the AST transformation

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you regularly write one-liners at the shell and want to avoid boilerplate imports and explicit print statements.

The low install friction, permissive license, and lack of known vulnerabilities make it safe to try. The aging maintenance status (595 days since last release) is a minor concern for a stable utility, but the active repository and solid user base suggest it remains reliable for its narrow, well-defined purpose.

Install

pypyp on PyPI

Before you install

Low friction: pure Python wheel with a single runtime dependency (astunparse). Maintenance is aging—last release was 595 days ago—but the repository remains active and unarchived with a modest user base (1528 stars).

Requires Python 3.8 or above; pyp is primarily a shell command-line tool, not a library for direct Python import.

License in practice

MIT license (permissive) means you can use, modify, and redistribute pypyp with minimal restrictions, making it safe for both personal and commercial projects.

Quickstart

pip install pypyp

# In shell:
echo -e "hello\nworld" | pyp 'x.upper()'

# In Python (less common):
import subprocess
result = subprocess.run(['pyp', 'x.upper()'], input=b'hello\n', capture_output=True)
print(result.stdout.decode())

Verify before relying

  • Whether the --explain output is guaranteed to be runnable Python or merely illustrative
  • Performance characteristics when processing very large input streams
  • Compatibility with all standard library modules beyond those explicitly mentioned

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
astunparse
MaintenanceAging 595 days since the last release
Last repo commit
First released
Downloads108,435 / month, #12,558 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Environment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Software DevelopmentTopic :: Utilities

Evidence: pypyp-1.3.0-py3-none-any.whl

Tags

Capabilities
python one-liners shellrun python from command linepipe python processingshell python scriptingpython text processing CLIautomatic python imports shellpython line-by-line processing
Topics
shell-scriptingone-linerscli-tool

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “python one-liners shell”

  • pypyppyp lets you write Python expressions and scripts directly at the…
  • shyamlCommand-line tool for querying and extracting data from YAML files…
  • nietA command-line tool that extracts and transforms data from YAML,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also bash · setproctitle · plumbum · piper · subprocess.run · pipe · subprocrunner · ptyprocess · pprintpp · runs