wrapper library for executing system commands from Python
Project description
Introduciton
infi.execute is a utility for running processes in various ways. It provides several facilities, most of which are simply convenience wrappers over existing stdlib functionality.
Features
Runners
A runner abstracts a destination for executing commands. infi.execute exposes the LocalRunner class for running commands locally, and the SSHRunner for running commands through ssh.
Runners support the popen method, which replicates the basic subprocess.Popen interface, but also support extensions on top of it (see below).
execute
execute is a family of functions to perform the popular task of executing commands while capturing their stdout and stderr streams, possibly supplying a custom stdin stream. This is most useful for shell commands or system commands. execute is another method of the Runner class, making use of the popen method.
execute_async is another flavor, returning an async result that can be waited upon.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file infi.execute-0.0.12.tar.gz
.
File metadata
- Download URL: infi.execute-0.0.12.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eee11b40f56e075045828504f1ff597eb9c5db298fde09ef8890f080fb28c06a |
|
MD5 | 1b0c10dd04ec8fc159c170a2e118b1c7 |
|
BLAKE2b-256 | 827cc08c75532ae36c2c75ed883eb1247af0bf56059391cd3b85c0e03c899456 |