Buckets:
MisterAI/LocalAI_Demo_backends / cpu-diffusers.upgrade-tmp /venv /lib /python3.10 /site-packages /rich /diagnose.py
| import os | |
| import platform | |
| from rich import inspect | |
| from rich.console import Console, get_windows_console_features | |
| from rich.panel import Panel | |
| from rich.pretty import Pretty | |
| def report() -> None: # pragma: no cover | |
| """Print a report to the terminal with debugging information""" | |
| console = Console() | |
| inspect(console) | |
| features = get_windows_console_features() | |
| inspect(features) | |
| env_names = ( | |
| "CLICOLOR", | |
| "COLORTERM", | |
| "COLUMNS", | |
| "JPY_PARENT_PID", | |
| "JUPYTER_COLUMNS", | |
| "JUPYTER_LINES", | |
| "LINES", | |
| "NO_COLOR", | |
| "TERM_PROGRAM", | |
| "TERM", | |
| "TTY_COMPATIBLE", | |
| "TTY_INTERACTIVE", | |
| "VSCODE_VERBOSE_LOGGING", | |
| ) | |
| env = {name: os.getenv(name) for name in env_names} | |
| console.print(Panel.fit((Pretty(env)), title="[b]Environment Variables")) | |
| console.print(f'platform="{platform.system()}"') | |
| if __name__ == "__main__": # pragma: no cover | |
| report() | |
Xet Storage Details
- Size:
- 977 Bytes
- Xet hash:
- 208868c753a20095ee1c0fb802eda4be128baaf8b9bbf9d40d910f13ee058cb2
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.