command-builder-0.1.3
توضیحات
Summary shell commands execution
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | command-builder-0.1.3 |
| نام | command-builder |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Guilherme Righetto |
| ایمیل نویسنده | guilhermerighetto02@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/command-builder/ |
| مجوز | MIT |
# 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:
```bash
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:
```python
from command_builder.command_builder import CommandBuilder
command_builder = CommandBuilder()
```
Adding commands:
```python
command_builder.add(name="ls", command=["ls", "-a"])
command_builder.add(name="pwd", command=["pwd", "-o"])
```
Running commands:
```python
command_builder.run()
```
Output:
```diff
______________________________summary______________________________
+ ls: commands succeeded
- ERROR: pwd: commands failed
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.2,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl command-builder-0.1.3:
pip install command-builder-0.1.3.whl
نصب پکیج tar.gz command-builder-0.1.3:
pip install command-builder-0.1.3.tar.gz