$84 GRAYBYTE WORDPRESS FILE MANAGER $96

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 93.127.173.101 | ADMIN IP 216.73.216.215
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python311/lib/python3.11/site-packages/loguru/

HOME
Current File : /opt/alt/python311/lib/python3.11/site-packages/loguru//_colorama.py
import os
import sys


def should_colorize(stream):
    if stream is None:
        return False

    if stream is sys.stdout or stream is sys.stderr:
        try:
            import ipykernel
            import IPython

            ipython = IPython.get_ipython()
            is_jupyter_stream = isinstance(stream, ipykernel.iostream.OutStream)
            is_jupyter_shell = isinstance(ipython, ipykernel.zmqshell.ZMQInteractiveShell)
        except Exception:
            pass
        else:
            if is_jupyter_stream and is_jupyter_shell:
                return True

    if stream is sys.__stdout__ or stream is sys.__stderr__:
        if "CI" in os.environ and any(
            ci in os.environ
            for ci in ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS"]
        ):
            return True
        if "PYCHARM_HOSTED" in os.environ:
            return True
        if os.name == "nt" and "TERM" in os.environ:
            return True

    try:
        return stream.isatty()
    except Exception:
        return False


def should_wrap(stream):
    if os.name != "nt":
        return False

    if stream is not sys.__stdout__ and stream is not sys.__stderr__:
        return False

    from colorama.win32 import winapi_test

    if not winapi_test():
        return False

    try:
        from colorama.winterm import enable_vt_processing
    except ImportError:
        return True

    try:
        return not enable_vt_processing(stream.fileno())
    except Exception:
        return True


def wrap(stream):
    from colorama import AnsiToWin32

    return AnsiToWin32(stream, convert=True, strip=True, autoreset=False).stream

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
5 Sep 2025 9.32 AM
root / 996
0755
__pycache__
--
8 May 2024 6.34 PM
root / root
0755
__init__.py
0.611 KB
8 May 2024 6.34 PM
root / root
0644
__init__.pyi
14.098 KB
8 May 2024 6.34 PM
root / root
0644
_asyncio_loop.py
0.583 KB
8 May 2024 6.34 PM
root / root
0644
_better_exceptions.py
19.527 KB
8 May 2024 6.34 PM
root / root
0644
_colorama.py
1.634 KB
8 May 2024 6.34 PM
root / root
0644
_colorizer.py
14.259 KB
8 May 2024 6.34 PM
root / root
0644
_contextvars.py
0.313 KB
8 May 2024 6.34 PM
root / root
0644
_ctime_functions.py
1.495 KB
8 May 2024 6.34 PM
root / root
0644
_datetime.py
3.669 KB
8 May 2024 6.34 PM
root / root
0644
_defaults.py
2.86 KB
8 May 2024 6.34 PM
root / root
0644
_error_interceptor.py
1.081 KB
8 May 2024 6.34 PM
root / root
0644
_file_sink.py
14.186 KB
8 May 2024 6.34 PM
root / root
0644
_filters.py
0.604 KB
8 May 2024 6.34 PM
root / root
0644
_get_frame.py
0.447 KB
8 May 2024 6.34 PM
root / root
0644
_handler.py
12.338 KB
8 May 2024 6.34 PM
root / root
0644
_locks_machinery.py
1.276 KB
8 May 2024 6.34 PM
root / root
0644
_logger.py
93.723 KB
8 May 2024 6.34 PM
root / root
0644
_recattrs.py
2.795 KB
8 May 2024 6.34 PM
root / root
0644
_simple_sinks.py
3.646 KB
8 May 2024 6.34 PM
root / root
0644
_string_parsers.py
4.597 KB
8 May 2024 6.34 PM
root / root
0644
py.typed
0 KB
8 May 2024 6.34 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF