Skip to main content

Easy to use python subprocess interface.

Project description

EasyProcess is an easy to use python subprocess interface.

Links:
Features:
  • layer on top of subprocess module

  • easy to start, stop programs

  • easy to get standard output/error, return code of programs

  • command can be list or string

  • logging

  • timeout

  • unit-tests

  • cross-platform, development on linux

  • global config file with program aliases

  • shell is not supported

  • pipes are not supported

  • stdout/stderr is set only after the subprocess has finished

  • stop() does not kill whole subprocess tree

  • unicode support

  • supported python versions: 2.5, 2.6, 2.7, 3.1, 3.2, PyPy

Known problems:
  • none

Similar projects:

Basic usage

>>> from easyprocess import EasyProcess
>>> EasyProcess('python --version').call().stderr
u'Python 2.6.6'

Installation

General

  • install pip

  • install the program:

    # as root
    pip install EasyProcess

Ubuntu

sudo apt-get install python-pip
sudo pip install EasyProcess

Uninstall

# as root
pip uninstall EasyProcess

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

EasyProcess-0.1.6.tar.gz (10.7 kB view hashes)

Uploaded Source

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