Skip to main content

A simple way to run terminal commands within a Python script.

Project description

[<img src="https://travis-ci.org/seanchon/simple_terminal.svg?branch=master">](https://travis-ci.org/seanchon/simple_terminal)
[<img src="https://img.shields.io/pypi/pyversions/simple-terminal.svg">](https://pypi.python.org/pypi/simple_terminal)

# simple_terminal
A simple way to run terminal commands within a Python script.


## Code Example
```python
from simple_terminal import Terminal

terminal = Terminal()

results = terminal.command('ls')
```

or

```python

from simple_terminal import Terminal

with Terminal() as terminal:
results = terminal.command('ls')
```

## Motivation
This library exists to run terminal commands from within a script and capture stdout to create easier automation of commonly performed tasks.

## Installation
pip install simple_terminal

## License
MIT

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

simple_terminal-1.1.0.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file simple_terminal-1.1.0.tar.gz.

File metadata

File hashes

Hashes for simple_terminal-1.1.0.tar.gz
Algorithm Hash digest
SHA256 363cefa402a1771ecf418fc2e058ae5bb8a0d6f860aa7885c4c4e4f955152419
MD5 56e147acfcbef08a4116f6b19b69720f
BLAKE2b-256 dd221660d395660de67d0030028fc417a0ff19cf2d1b24d3b0e1cd6f09b0f67a

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