Skip to main content

Wrapper script for subprocess usage

Project description

Python3 - SubPS

Wrapper script for subprocess usage.

It only uses builtin modules.

Install

python3 -m pip install subps

See: PyPI

Usage

from subps import process, process_out_err, process_out, process_err, process_rc

process(cmd='ls -l')
# dict('stdout': 'stdout...', 'stderr': 'stderr...', 'rc': 0)

process_out_err(cmd='ls -l')
# tuple('stdout...', 'stderr...')

process_out(cmd='ls -l')
# 'stdout...'

process_err(cmd='ls -l')
# 'stderr...'

process_rc(cmd='ls -l')
# 0

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

subps-1.0.1.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

subps-1.0.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file subps-1.0.1.tar.gz.

File metadata

  • Download URL: subps-1.0.1.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for subps-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f101e2b047e3b81ea87bcac9cc6e5d482b06be0cfb32060ac1548c3fb2e2c6fd
MD5 ec25c9406a32366be03571a5b9ac7384
BLAKE2b-256 055ebf366ca0ce8df61f39795bdc22750c13250e190eee4875ecf551603d770f

See more details on using hashes here.

File details

Details for the file subps-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: subps-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for subps-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a202597d5282c5703fb31bc7efcae4411e988dd4c130bbb8790032298f661167
MD5 4868330061c9e07e12baf98fd57a9c4f
BLAKE2b-256 629bf9c34b4e65a60c29e3dc583e9b1a977ea0e8ed92ccd7917cdb8a31e6e2a1

See more details on using hashes here.

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