Summary shell commands execution
Project description
Command Builder
Command Builder is a library that manages the execution of shell commands, creating a summary of the executions. The objective is to facilitate the perception of errors.
Installation
You need Python 3.7 or above.
From the terminal, enter:
pip install command-builder
Getting started
The examples refer to the newest version (0.1.0) of command-builder.
First, let's init the command-builder:
from command_builder.command_builder import CommandBuilder
command_builder = CommandBuilder()
Adding commands:
command_builder.add(name="ls", command=["ls", "-a"])
command_builder.add(name="pwd", command=["pwd", "-o"])
Running commands:
command_builder.run()
Output:
______________________________summary______________________________
+ ls: commands succeeded
- ERROR: pwd: commands failed
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
command-builder-0.1.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for command_builder-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cc0817c7457dbd2b14fa1737f14f02a32c5d55cbc13fff6239bf2380c0ec768 |
|
MD5 | a8324e2dee76a4aba1cc94e33c6da923 |
|
BLAKE2b-256 | 7ecbb3fe761e0754699ebd8f74880e97d99ed4b49a516fdae278e0157b43f979 |