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.2) 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.2.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for command_builder-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb8802474af14c6cf69adb04716f680e45d811dbbc31f504343300a94520d085 |
|
MD5 | e89357075d95fe3e934a1b0aff003df1 |
|
BLAKE2b-256 | 1e46687f360fed04c5e841c915078a13158f66f41588a778a9322afd22f88ac6 |