Skip to main content

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)

Uploaded Source

Built Distribution

command_builder-0.1.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page