argparse-color-formatter-1.2.2.post2
توضیحات
a `formatter_class` for `argparse` that deals with ANSI colour escapes. Specifically, this formatter does not count escape characters as displayed characters when wrapping `argparse`'s help text into the terminal.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | argparse-color-formatter-1.2.2.post2 |
| نام | argparse-color-formatter |
| نسخه کتابخانه | 1.2.2.post2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Arrai Innovations |
| ایمیل نویسنده | support@arrai.com |
| آدرس صفحه اصلی | https://github.com/arrai-innovations/argparse-color-formatter/ |
| آدرس اینترنتی | https://pypi.org/project/argparse-color-formatter/ |
| مجوز | LICENSE |
# argparse-color-formatter
A [`formatter_class` for `argparse`](https://docs.python.org/3/library/argparse.html#formatter-class) that deals with ANSI colour escapes. Specifically, this formatter does not count escape characters as displayed characters when wrapping argparse's help text into the terminal.
> 
###### master
 [](https://docs.arrai-dev.com/argparse-color-formatter/htmlcov_master_python38/)
 [](https://docs.arrai-dev.com/argparse-color-formatter/htmlcov_master_python37/)
 [](https://docs.arrai-dev.com/argparse-color-formatter/htmlcov_master_python36/)
 [](https://docs.arrai-dev.com/argparse-color-formatter/htmlcov_master_python27/)

###### develop
 [](https://docs.arrai-dev.com/argparse-color-formatter/htmlcov_develop_python38/)
 [](https://docs.arrai-dev.com/argparse-color-formatter/htmlcov_develop_python37/)
 [](https://docs.arrai-dev.com/argparse-color-formatter/htmlcov_develop_python36/)
 [](https://docs.arrai-dev.com/argparse-color-formatter/htmlcov_develop_python27/)

## Install
```shell
$ pip install argparse-color-formatter
```
## Usage
Pass in `argparse_color_formatter.ColorHelpFormatter` to a new argument parser as `formatter_class`
```python
import argparse
from argparse_color_formatter import ColorHelpFormatter
parser = argparse.ArgumentParser(
formatter_class=ColorHelpFormatter
)
```
## Before & After
ANSI colour escapes using the default `HelpFormatter`:

ANSI colour escapes using this libraries new `ColorHelpFormatter`:

نیازمندی
| مقدار | نام |
|---|---|
| <2.0.0,>=1.1.8 | ansicolors |
| <2.0.0,>=1.11.0 | six |
نحوه نصب
نصب پکیج whl argparse-color-formatter-1.2.2.post2:
pip install argparse-color-formatter-1.2.2.post2.whl
نصب پکیج tar.gz argparse-color-formatter-1.2.2.post2:
pip install argparse-color-formatter-1.2.2.post2.tar.gz