Easily call processes from python
Project description
Perform is for calling processes from python 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.
Examples:
To call a normal program that whose name doesn't contain symbols:
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 stderr from a program:
try:
perform.git("asdad")
except Exception as e:
print(str(e))
Examples:
To call a normal program that whose name doesn't contain symbols:
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 stderr from a program:
try:
perform.git("asdad")
except Exception as e:
print(str(e))
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
perform-0.0.3.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for perform-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a77b7139b1a03d2e5a19bae8f8a0e15e5df4c1208d34c612640baf2aba222b7 |
|
MD5 | a166e97afb0e2b732d495f9d184a78c8 |
|
BLAKE2b-256 | 096058f034127994dea64932d47c155277690bde9c276fd85c1ec57263d76460 |