OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python311
/
lib
/
python3.11
/
site-packages
/
loguru
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
01/09/2025 02:18:04 AM
rwxr-xr-x
📄
__init__.py
626 bytes
05/14/2024 03:18:46 PM
rw-r--r--
📄
__init__.pyi
14.1 KB
05/14/2024 03:18:46 PM
rw-r--r--
📁
__pycache__
-
05/14/2024 03:18:46 PM
rwxr-xr-x
📄
_asyncio_loop.py
597 bytes
05/14/2024 03:18:46 PM
rw-r--r--
📄
_better_exceptions.py
19.53 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_colorama.py
1.63 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_colorizer.py
14.26 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_contextvars.py
321 bytes
05/14/2024 03:18:46 PM
rw-r--r--
📄
_ctime_functions.py
1.5 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_datetime.py
3.67 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_defaults.py
2.86 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_error_interceptor.py
1.08 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_file_sink.py
14.19 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_filters.py
618 bytes
05/14/2024 03:18:46 PM
rw-r--r--
📄
_get_frame.py
458 bytes
05/14/2024 03:18:46 PM
rw-r--r--
📄
_handler.py
12.34 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_locks_machinery.py
1.28 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_logger.py
93.72 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_recattrs.py
2.79 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_simple_sinks.py
3.65 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
_string_parsers.py
4.6 KB
05/14/2024 03:18:46 PM
rw-r--r--
📄
py.typed
0 bytes
05/14/2024 03:18:46 PM
rw-r--r--
Editing: _colorama.py
Close
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