Skip to main content

Easy to use python subprocess interface.

Project description

EasyProcess is an easy to use python subprocess interface.

home: https://github.com/ponty/EasyProcess

html documentation: http://ponty.github.com/EasyProcess

pdf documentation: https://github.com/ponty/EasyProcess/raw/master/docs/_build/latex/EasyProcess.pdf

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

  • unittests

  • crossplatform, development on linux

  • global config file with program aliases

Known problems:
  • shell is not supported

  • pipes are not supported

  • large stdout/stderr was not tested, maybe not efficent

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

  • stop() does not kill whole subprocess tree

  • Python 3 is not supported

Basic usage

>>> from easyprocess import EasyProcess
>>> EasyProcess('echo hello').call().stdout
'hello'

Installation

General

if you have setuptools installed:

# as root
easy_install EasyProcess

if you have pip installed:

# as root
pip install EasyProcess

Ubuntu

sudo apt-get install python-setuptools
sudo easy_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.0.8.tar.gz (33.2 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