Skip to main content

Easily call processes from python

Project description

Perform is a python module for calling processes in a simple and easy way. Each program is added to the perform module as a function that returns the stdout printed by the program.

- To call a program:
import perform
stdout =

- To pass arguments to a program:
stdout = perform.git("ls-files", "-m")

- To call a program that contains symbols in its name:
stdout = perform._("pip2.7", "install", "perform")

- To get extra information from a program:
obj = # or

stdout = obj.stdout
stderr = obj.stderr
errcode = obj.errcode

- To call a command in the shell:
print(perform._("ls | grep 'py'", shell=True))

- To import a specific command:
from perform import ls


- To use perform for a non-blocking call:
perform.firefox("", no_return=True)
perform.firefox("", no_return=True)
perform.firefox("", nr=True)

##more examples
import perform

stdout =

print(perform.git("ls-files", "-m"))

print(perform._("pip2.7", "install", "perform"))

stdout = perform.raspistill("-o ~/image.jpg")

print(perform.python("-c", "import perform;print(perform.echo('hello'))")

Project details

Download files

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

Files for perform, version 0.0.8
Filename, size File type Python version Upload date Hashes
Filename, size perform-0.0.8.linux-x86_64.tar.gz (4.1 kB) File type Dumb Binary Python version any Upload date Hashes View
Filename, size perform-0.0.8-py2.py3-none-any.whl (4.7 kB) File type Wheel Python version 3.4 Upload date Hashes View
Filename, size perform-0.0.8.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page