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 details)

Uploaded Source

Built Distribution

subprocess_pipe-0.11-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file subprocess_pipe-0.11.tar.gz.

File metadata

  • Download URL: subprocess_pipe-0.11.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for subprocess_pipe-0.11.tar.gz
Algorithm Hash digest
SHA256 975bbdca520ea189c555bee961cd3f20dedbdee4a7b7aaefb0e9611661e97b2c
MD5 fc6a657899501c7dd324b83bf8ca7040
BLAKE2b-256 8a63084f009faca45a3df203481d83efbed6d2ff52f2452dd428b20550d423f8

See more details on using hashes here.

Provenance

File details

Details for the file subprocess_pipe-0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for subprocess_pipe-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6cb812da36943e4761e8f8ef906b2ba17d19b850d1733cae352a5bf125e6e2c1
MD5 3669c7ab5e9403e787b1bfba6e2a507f
BLAKE2b-256 b664911092ef5827c94829bb44ecb0ae39f59915c8a095fb36782924f19f2f06

See more details on using hashes here.

Provenance

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