ColorChalks-1.0.3
توضیحات
You can use different foreground and background colors in terminal using ColorChalks module.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ColorChalks-1.0.3 |
| نام | ColorChalks |
| نسخه کتابخانه | 1.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sagar-Sharma-7 |
| ایمیل نویسنده | 6969sagarsharma@gmail.com |
| آدرس صفحه اصلی | https://github.com/Sagar-Sharma-7/ColorChalks |
| آدرس اینترنتی | https://pypi.org/project/ColorChalks/ |
| مجوز | - |
<h1 align="center">
<img src="./src/img/Color2.png" alt="ColorChalks">
</h1>
> 🖌️Module for terminal string styling
[](https://badge.fury.io/py/ColorChalks)
[](https://www.python.org/)
[](https://pypi.python.org/pypi/ansicolortags/)
[](https://pepy.tech/project/colorchalks)
---
<br>
## Installation
```sh
pip install ColorChalks
```
## Usage
```python
from ColorChalks import ColorChalks
# Print "Hello World!" in yellow color.
print(ColorChalks.FCOLORS.Yellow + "Hello World!")
# Print "Hello World!" with green background color.
# but first you have to reset
print(COLORS.Reset + BCOLORS.Green + "Hello World!")
## Print "Hello World!" with green background color with blue foreground color
print(COLORS.Reset + BCOLORS.Green + FCOLORS.Blue + "Hello World!")
```
**Note:** Version 1.0.3 comes with foreground colors (FCOLORS) and background colors (BCOLORS)
-----
## Colors
- `Black`
- `Red`
- `Green`
- `Yellow`
- `Blue`
- `Magenta`
- `Cyan`
- `White`
- `BrightBlack`
- `BrightRed`
- `BrightGreen`
- `BrightYellow`
- `BrightBlue`
- `BrightMagenta`
- `BrightCyan`
- `BrightWhite`
**NOTE:** Use the following command to reset to default color. Prefer to use this command before jumping from Bright colors to normal colors.
```python
print(ColorChalks.COLORS.Reset)
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl ColorChalks-1.0.3:
pip install ColorChalks-1.0.3.whl
نصب پکیج tar.gz ColorChalks-1.0.3:
pip install ColorChalks-1.0.3.tar.gz