Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 793 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 793 Bytes

simple_terminal

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

Code Example

from simple_terminal import Terminal

terminal = Terminal()

results = terminal.command('ls')

or

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