Skip to main content

wrapper library for executing system commands from Python

Project description

Introduction

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


Download files

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

Source Distribution

infi.execute-0.0.14.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file infi.execute-0.0.14.tar.gz.

File metadata

File hashes

Hashes for infi.execute-0.0.14.tar.gz
Algorithm Hash digest
SHA256 54e5aecede89df545f9115f36adc9bf2b1ae615f6a5a01b9e36d0264e7d6e39a
MD5 b3a09d524229f2efcd8902f19b39a902
BLAKE2b-256 5a140e81c6d2fe62e14d359b5d055fed0881a7c5bb3bb8f1e112fa7f2bd0ba34

See more details on using hashes here.

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