Skip to main content

Pipe stdout to python

Project description

pyq

Apply python over stdin, line by line.

Usage examples

echo """1
2
3
4
5
6
7""" | pyq '[e for e in args if e and int(e) >= 5]'
echo """1
2
3
4
not a digit
5
6
7"""| pyq '[e for e in args if e.isdigit()]'

Install

python3 setup.py install

Run

python3 -m pyq

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

python_pyq-0.0.4-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page