cli-forge-0.0.4
توضیحات
A tool for building simple CLIs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cli-forge-0.0.4 |
| نام | cli-forge |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Jonathan <jonathanfmaggio@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/cli-forge/ |
| مجوز | - |
# CLI Forge
A tool for building simple CLIs
## Installation
`pip install pick`
## Input
### Basic
```py
from cli_forge import cli_forge
basic_input = cli_forge.cli_prompt("What is your name?")
```
### Select
```py
from cli_forge import cli_forge
select_input = cli_forge.cli_prompt("What currency will you be using?", options=["£", "$"], select=True)
```
### Multi-select
```py
from cli_forge import cli_forge
multi_select_input = cli_forge.cli_prompt("Which languages would you like to include?", options=["English", "Italian", "Spanish"], options_format=["EN", "IT", "ES"], multiselect=True)
```
### Options
- `prompt`: prompt above the options
- `options`: (optional) list of options
- `select`: (optional) if True, allows you select an option
- `multiselect`: (optional) if True, allows you to select multiple options
- `options_format`: (optional) allows you to format your output for use in your program
## Input
### Usage
```py
from cli_forge import cli_forge
cli_forge.cli_progress(10, 1, "Fetching data...")
# function
cli_forge.cli_progress(10, 2, "Fetching data...")
# ...
```
### Options
- `length`: number of progress units
- `progress`: progress level (out of length)
- `prefix`: text before the progress bar
- `size`: (optional) progress bar size on screen
- `end`: (optional) if True, allows you to end the progress bar before it completes
نیازمندی
| مقدار | نام |
|---|---|
| s_nam | windows-curses; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl cli-forge-0.0.4:
pip install cli-forge-0.0.4.whl
نصب پکیج tar.gz cli-forge-0.0.4:
pip install cli-forge-0.0.4.tar.gz