Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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.

Files for simple_terminal, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size simple_terminal-1.1.0.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page