Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

##usage:
- To call a program:
import perform
stdout = perform.ls()

- 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 = perform.ls(return_object=True) # or perform.ls(ro=True)

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

print(ls("-a"))

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

##more examples
import perform

stdout = perform.ls()

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'))")
Release History

Release History

This version
History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
perform-0.0.8.linux-x86_64.tar.gz (4.1 kB) Copy SHA256 Checksum SHA256 any Dumb Binary Feb 12, 2015
perform-0.0.8-py2.py3-none-any.whl (4.7 kB) Copy SHA256 Checksum SHA256 3.4 Wheel Feb 12, 2015
perform-0.0.8.tar.gz (2.8 kB) Copy SHA256 Checksum SHA256 Source Feb 12, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting