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.6.2 or above.
From the terminal, enter:
pip install command-builder
Getting started
The examples refer to the newest version (0.1.3) 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.3.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for command_builder-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b94cfebb289f38d12210e51d9d195bdd68f6439ed394fe74b08d9af28c0ce8e |
|
MD5 | 5e1addd4b619c031d44d9e6eebab93e3 |
|
BLAKE2b-256 | 25100bb4827b9dadf5aef79fd7ffb729785971e3916cd56dc513357d9dfbe175 |