Color-Fi-1.0.2
توضیحات
Color-Fi is a tool to color and format strings in python.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | Color-Fi-1.0.2 |
| نام | Color-Fi |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | John J Kenny |
| ایمیل نویسنده | johnjkenny88@gmail.com |
| آدرس صفحه اصلی | https://github.com/johnjkenny/color-Fi |
| آدرس اینترنتی | https://pypi.org/project/Color-Fi/ |
| مجوز | - |
# Color-Fi
Color-Fi is a tool to color and format strings in python to enhance user experience and to highlight important information so it does not go unnoticed.
## Installation
Color-Fi is a python package which can be found on [Python Package Index (PyPi)](https://pypi.org/project/Color-Fi/). Run the following command to install:<br>
``` bash
pip install Color-Fi
```
## Import Color-Fi into your projects
``` python
from ColorFi.color_fi import ColorFi
```
## Usage
### Display key options:
``` python
color_fi = ColorFi()
# Display key options:
color_fi.display_key_options()
```
Output:
``` bash
Ground Options: foreground, background
Color Options: black, red, green, yellow, blue, magenta, cyan, white, bright-black, bright-red, bright-green, bright-yellow, bright-blue, bright-magenta, bright-cyan, bright-white
Formatting Options: reset, default, bold, dim, italic, underline, double-underline, slow-blink, rapid-blink, invert, hide, strike
```
### Display all formatting options to help you choose what you want to use in your project:
``` python
# Display samples:
color_fi.display_all_formatting_options()
```
Output as a gif:<br>

### View selected formatting options on console
``` python
# print message to console with formatting options:
color_fi.print_message('Test Message', 'red', 'foreground', 'invert')
```
Output as png:<br>

### Format message without printing directly to console
``` python
msg = color_fi.format_message('Test Message', 'red', 'foreground', 'invert')
print(msg)
```
Output as png:<br>

نحوه نصب
نصب پکیج whl Color-Fi-1.0.2:
pip install Color-Fi-1.0.2.whl
نصب پکیج tar.gz Color-Fi-1.0.2:
pip install Color-Fi-1.0.2.tar.gz