Skip to main content

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

Metadata

Release files for command-builder 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for command-builder 0.2.0
File Size Uploaded Provenance Actions
command_builder-0.2.0.tar.gz 3.5 kB Without provenance Details for command_builder-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for command-builder 0.2.0
File Interpreter ABI Platform Actions
command_builder-0.2.0-py3-none-any.whl Python 3 none any Details for command_builder-0.2.0-py3-none-any.whl

Total release size: 7.9 kB

Release files / command_builder-0.2.0.tar.gz

Download URL command_builder-0.2.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1e55bc3e127b6380a431fa372c7d21c16fb4b372239b492d77efb25dfe7c5895
BLAKE2b-256 checksum
How to use checksums
3337d0c1f61f372e51ddaff26543976fe177c609aaa32a0c92b53fe180949674
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.10.12 Linux/6.8.0-111-generic

Release files / command_builder-0.2.0-py3-none-any.whl

Download URL command_builder-0.2.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ce0006e7322e0d2bb3501274ef7d7f0a23d46c37dbf1a9bb1b8c6ab76980f3a
BLAKE2b-256 checksum
How to use checksums
ff34b1a9dd07310a2c06a05cc50873830b45f2ad5fae1bb57be1127c98f1b66d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.10.12 Linux/6.8.0-111-generic

Security for command-builder 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page