This module contains implementations for the termui module. To keep the import time of Click down, some infrequently used functionality is placed in this module and only imported as needed.
# Source: https://github.com/pallets/click | License: BSD-3-Clause | Copyright 2014 Pallets # Provided via justclaw.it.com; keep this notice with the code. """ This module contains implementations for the termui module. To keep the import time of Click down, some infrequently used functionality is placed in this module and only imported as needed. """ from __future__ import annotations import collections.abc as cabc import contextlib import math import os import shlex import sys import time import typing as t from gettext import gettext as _ from io import StringIO from pathlib import Path from types import TracebackType from ._compat import _default_text_stdout from ._compat import CYGWIN from ._compat import get_best_encoding from ._compat import isatty from ._compat import strip_ansi ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key