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.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.2.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

command_builder-0.2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file command_builder-0.2.0.tar.gz.

File metadata

  • Download URL: command_builder-0.2.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.12 Linux/6.8.0-111-generic

File hashes

Hashes for command_builder-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1e55bc3e127b6380a431fa372c7d21c16fb4b372239b492d77efb25dfe7c5895
MD5 64ee7d1a1f99d7bbb67d8338c03b2d5a
BLAKE2b-256 3337d0c1f61f372e51ddaff26543976fe177c609aaa32a0c92b53fe180949674

See more details on using hashes here.

File details

Details for the file command_builder-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: command_builder-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.12 Linux/6.8.0-111-generic

File hashes

Hashes for command_builder-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ce0006e7322e0d2bb3501274ef7d7f0a23d46c37dbf1a9bb1b8c6ab76980f3a
MD5 5b6ed3f8eeef255d8dd199f132c69b11
BLAKE2b-256 ff34b1a9dd07310a2c06a05cc50873830b45f2ad5fae1bb57be1127c98f1b66d

See more details on using hashes here.

Supported by

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