معرفی شرکت ها


enrich-1.2.7


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

enrich
ویژگی مقدار
سیستم عامل -
نام فایل enrich-1.2.7
نام enrich
نسخه کتابخانه 1.2.7
نگهدارنده ['Sorin Sbarnea']
ایمیل نگهدارنده ['sorin.sbarnea@gmail.com']
نویسنده Sorin Sbarnea
ایمیل نویسنده sorin.sbarnea@gmail.com
آدرس صفحه اصلی https://github.com/pycontribs/enrich
آدرس اینترنتی https://pypi.org/project/enrich/
مجوز MIT
# enrich Enriched extends [rich](https://pypi.org/project/rich/) library functionality with a set of changes that were not accepted to rich itself. ## Console with redirect support Our Console class adds one additional option to rich.Console in order to redirect `sys.stdout` and `sys.stderr` streams using a FileProxy. ```python from enrich.console import Console import sys console = Console( redirect=True, # <-- not supported by rich.cosole.Console record=True) sys.write("foo") # this assert would have passed without redirect=True assert console.export_text() == "foo" ``` ## Console with implicit soft wrapping If you want to produce fluid terminal output, one where the client terminal decides where to wrap the text instead of the application, you can now tell the Console constructor the soft_wrap preference. ```python from enrich.console import Console import sys console = Console(soft_wrap=True) console.print(...) # no longer need to pass soft_wrap to each print ``` ## Console.print can also deal with ANSI escapes Extends Rich Console to detect if original text already had ANSI escapes and decodes it before processing it. This solves the case where printing output captured from other processes that contained ANSI escapes would brake. [upstream-404](https://github.com/willmcgugan/rich/discussions/404) ## Soft-wrapping logger Rich logger assumes that you always have a fixed width console and it does wrap logged output according to it. Our alternative logger does exactly the opposite: it ignores the columns of the current console and prints output using a Console with soft wrapping enabled. The result are logged lines that can be displayed on any terminal or web page as they will allow the client to decide when to perform the wrapping. ```python import logging from enrich.logging import RichHandler FORMAT = "%(message)s" logging.basicConfig( level="NOTSET", format=FORMAT, datefmt="[%X]", handlers=[RichHandler()] ) log = logging.getLogger("rich") log.info("Text that we do not want pre-wrapped by logger: %s", 100 * "x") ```


نیازمندی

مقدار نام
>=9.5.1 rich
>=3.0.5 mock
>=2.7.1 pytest-cov
>=3.3.1 pytest-mock
- pytest-plus
>=1.29.0 pytest-xdist
>=5.4.0 pytest


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl enrich-1.2.7:

    pip install enrich-1.2.7.whl


نصب پکیج tar.gz enrich-1.2.7:

    pip install enrich-1.2.7.tar.gz