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 -U 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.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for command_builder-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 215466d4dd728756dffc7f136c89d9c42db766f314cbc1e36025f0eec0468d78 |
|
MD5 | 9d3cba670dc286aa47e68e8e4e314d72 |
|
BLAKE2b-256 | edde622fc6b89ba06efae10432f8916092a0db657b5fd92f257c234ebd203087 |