Skip to main content

Pipe commands with subprocess

Project description

Pipe commands with subprocess

Update 15.11.

added: pipe_commands_shelltrue / commands can be passed as strings

print(pipe_commands_shelltrue('ls',"grep .*py$","grep .*_.*").stdout.decode('utf-8', 'ignore'))
$pip install subprocess-pipe

from subprocess_pipe import pipe_commands

pa = pipe_commands(["ls"], ["grep", r".*py$"], ["grep", r"^w"])

print(pa.stdout.decode('utf-8'))



#output:

win_debugger.py

windowcapture.py

Project details


Download files

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

Source Distribution

subprocess_pipe-0.11.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

subprocess_pipe-0.11-py3-none-any.whl (4.4 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