AnsiPrint-0.0.7
توضیحات
Lightweight package for colored text in python.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | AnsiPrint-0.0.7 |
| نام | AnsiPrint |
| نسخه کتابخانه | 0.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ChezCoder |
| ایمیل نویسنده | mrpizzaguyytb@gmail.com |
| آدرس صفحه اصلی | https://repl.it/@ChezCoder/AnsiPrint |
| آدرس اینترنتی | https://pypi.org/project/AnsiPrint/ |
| مجوز | - |
# Usage
|Usage|Params|Return Value|
|:----------|:----------|:----------|
|`ansiprint()`|`str: msg, str: color-name/ansi, str: end, boolean: flush`|`str: msg`|
|`ansi()`|`str: color-name/ansi`|`str: ansi`|
|`clear()`|`None: None`|`None: None`|
# Examples
***
### `ansiprint()`
Code:
```python
ansiprint("This is red!","red")
ansiprint("This is blue!","blue")
ansiprint("This is white and ends with \"!\"",end="!")
```
Result:

***
### `ansi()`
Code:
```python
print(ansi("red") + "This is red!" + ansi("reset"))
print(ansi("blue") + "This is blue!" + ansi("reset"))
print(ansi(34) + "This is the ansi \"34\"!" + ansi("reset")) # ansi codes are in the ansi chart below
```
Result:

***
### `clear()`
Code:
```python
print("This message isn't seen because the console is cleared after!")
clear()
print("This message is seen because it is after the console is cleared!")
```
Result:

***
## Ansi Chart

زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl AnsiPrint-0.0.7:
pip install AnsiPrint-0.0.7.whl
نصب پکیج tar.gz AnsiPrint-0.0.7:
pip install AnsiPrint-0.0.7.tar.gz