Print detailed version and platform information, for error reporting
()
| 109 | |
| 110 | |
| 111 | def show_info(): |
| 112 | """ |
| 113 | Print detailed version and platform information, for error reporting |
| 114 | """ |
| 115 | show_versions() |
| 116 | |
| 117 | def print_entry(label, value): |
| 118 | print(f" {label: <20}: {value: <8}") |
| 119 | |
| 120 | print("\nPlatform:") |
| 121 | print_entry("OS / Arch", f"{_platform.system()} {_platform.machine()}") |
| 122 | print_entry("SIMD Level", runtime_info().simd_level) |
| 123 | print_entry("Detected SIMD Level", runtime_info().detected_simd_level) |
| 124 | |
| 125 | pool = default_memory_pool() |
| 126 | print("\nMemory:") |
| 127 | print_entry("Default backend", pool.backend_name) |
| 128 | print_entry("Bytes allocated", f"{pool.bytes_allocated()} bytes") |
| 129 | print_entry("Max memory", f"{pool.max_memory()} bytes") |
| 130 | print_entry("Supported Backends", ', '.join(supported_memory_backends())) |
| 131 | |
| 132 | print("\nOptional modules:") |
| 133 | modules = ["csv", "cuda", "dataset", "feather", "flight", "fs", "gandiva", "json", |
| 134 | "orc", "parquet"] |
| 135 | for module in modules: |
| 136 | status = "Enabled" if _module_is_available(module) else "-" |
| 137 | print(f" {module: <20}: {status: <8}") |
| 138 | print(f" {'opentelemetry': <20}: {'Enabled' if is_opentelemetry_enabled() else '-': <8}") |
| 139 | |
| 140 | print("\nFilesystems:") |
| 141 | filesystems = ["AzureFileSystem", "GcsFileSystem", |
| 142 | "HadoopFileSystem", "S3FileSystem"] |
| 143 | for fs in filesystems: |
| 144 | status = "Enabled" if _filesystem_is_available(fs) else "-" |
| 145 | print(f" {fs: <20}: {status: <8}") |
| 146 | |
| 147 | print("\nCompression Codecs:") |
| 148 | codecs = ["brotli", "bz2", "gzip", "lz4_frame", "lz4", "snappy", "zstd"] |
| 149 | for codec in codecs: |
| 150 | status = "Enabled" if Codec.is_available(codec) else "-" |
| 151 | print(f" {codec: <20}: {status: <8}") |
| 152 | |
| 153 | |
| 154 | from pyarrow.lib import (null, bool_, |
nothing calls this directly
no test coverage detected