context-printer-1.3.0
توضیحات
Tool for simple and appealing display of context in which each operation is executer
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | context-printer-1.3.0 |
| نام | context-printer |
| نسخه کتابخانه | 1.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bonvin Etienne, Rey Valérian |
| ایمیل نویسنده | etienne.bonvin@epfl.ch, valerian.rey@epfl.ch |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/context-printer/ |
| مجوز | - |
Python library to improve console printing by adding context to your prints. It makes your console much cleaner, and you won't have to worry about making your prints beautiful.
Installation:
> pip install context_printer
Basic usage example:
```python
from context_printer import ContextPrinter as Ctp
Ctp.enter_section('Main section', color='blue')
Ctp.print('Text in main section')
for i in range(3):
Ctp.enter_section('Subsection {}'.format(i + 1))
Ctp.print('Text in subsection')
Ctp.print('Text in subsection')
Ctp.exit_section()
Ctp.exit_section()
```
The above example will print the following:\
\

نحوه نصب
نصب پکیج whl context-printer-1.3.0:
pip install context-printer-1.3.0.whl
نصب پکیج tar.gz context-printer-1.3.0:
pip install context-printer-1.3.0.tar.gz